我正处于一个长期的调整期,一切都很顺利,直到我的
git rebase --continue
这就是我得到这个的地方:
$ git rebase --continue
Applying: A git commit
fatal: Unable to create '/Users/me/mycode/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
cp .git/rebase-merge/git-rebase-todo ~/another-folder # backup what is to be done
git branch failed-rebase # save the current point as a branch
git rebase --abort
然后,您可以通过以下操作继续失败的重新基准:
git rebase -i --onto failed-rebase <original rebase parameters here>