0
我想擠壓/修改幾個提交,沒有任何作者信息(顯示未知作者在github中)。雖然每次我嘗試互動底墊或修改時,它拋出壁球/修改提交沒有作者信息
Fatal: empty ident name (for <[email protected]>) not allowed
有什麼辦法來解決與?
感謝
我想擠壓/修改幾個提交,沒有任何作者信息(顯示未知作者在github中)。雖然每次我嘗試互動底墊或修改時,它拋出壁球/修改提交沒有作者信息
Fatal: empty ident name (for <[email protected]>) not allowed
有什麼辦法來解決與?
感謝
可以使用git filter-branch --env-filter 'export GIT_AUTHOR_NAME=Kirby' keep_this_commit..rewrite_this_branch
的時間提前,以確保所有提交有一個作者。
當然,如果他們中的一些已經有了一個很好的作家值,你需要做的env-filter
條件,否則在filter-branch
後edit
底墊一步把他們回來git commit --amend --author=...
。
在你的配置中,是否設置了user.name和user.email? – madprog
何時顯示該消息?當你第一次啓動'git rebase -i'時,或者當它試圖應用你的待辦事項清單? –
當它嘗試應用列表時發生了。並且'user.name'和'user.email'被設置和檢查。 – Erebuxy