9
> 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目录中做一些魔术,或者以其他方式?

4

2 回答 2

2

我会去找git rebase -i解决方案。

编辑错误的提交以及git commit --amend --date="Mon Jul 24 14:00 2015 +0100"何时停止它们。

如果您基于推送的提交,您将不得不重写分支历史记录(在您的情况下masterpush -f

于 2015-07-21T09:28:46.590 回答
0

编辑:如果变基选项不起作用..我会注销尝试修复回购..

我会选择快速出口和快速进口..

git fast-export --all | (cd /cleanrepo/ && git fast-import)

--anonymize如果上述方法失败,我将添加删除所有识别信息..

于 2015-07-21T09:38:30.830 回答