最佳答案
我在项目中初始化了一个新的 git,到目前为止只提交了两次。我的日志如下
git log
commit e515e5b8dcbd8f1ea4a7a7d4a1efb82a1a0aee7a
Author: Olkun Mustafa <olkun.mustafa@gmail.com>
Date: Fri Oct 3 10:04:20 2014 +0300
Temp commit
commit 71781bf0a7807351a56d5155dac94169ea700527
Author: Olkun Mustafa <olkun.mustafa@gmail.com>
Date: Fri Oct 3 10:01:42 2014 +0300
First Commit
当我尝试重新调整提交的基础时,我会得到如下错误
git rebase --interactive HEAD~2
fatal: Needed a single revision
invalid upstream HEAD~2
I quite research at google but I haven't found solution till now.