我正在尝试压缩 git 存储库中的一些提交。
> git rebase -i HEAD~3
Successfully rebased and updated refs/heads/staging.
打开一个文件,标题为git-rebase-todo
:
pick a2f3467 Require statement incorrect
pick c41212e Require file in environment
pick 2743221 This should work
# Rebase c5f42f3..2743221 onto c5f42f3
# ..........
我尝试将底部的两个提交更改为squash
from pick
。我保存文件,我收到以下错误:
Unable to save ~/Documents/code/myapp/.git/rebase-emrge/git-rebase-todo