> git fsck
error in commit %hash%: invalid author/committer line - bad time zone
> git show %hash%
Date: Mon Mar 18 23:57:14 2201 -5274361
如何解决这个问题?在git rebase
主分支中删除\更新提交信息,或者在项目.git
目录中做一些魔术,或者以其他方式?
我会去找git rebase -i
解决方案。
编辑错误的提交以及git commit --amend --date="Mon Jul 24 14:00 2015 +0100"
何时停止它们。
如果您基于推送的提交,您将不得不重写分支历史记录(在您的情况下master
)push -f
。
编辑:如果变基选项不起作用..我会注销尝试修复回购..
我会选择快速出口和快速进口..
git fast-export --all | (cd /cleanrepo/ && git fast-import)
--anonymize
如果上述方法失败,我将添加删除所有识别信息..