我该如何使用“git rebase”将第一个提交和第四个提交合并?根据我在这里阅读的http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html,'git rebase'中的'squash'命令只会融合到前一个提交中。
在Git中,我有以下提交:
我没有推送任何东西。
谢谢。
在Git中,我有以下提交:
$ git log
commit 9a30d13
commit 4a6729e
commit 4a6729e
commit 4a6729e
commit a610898
基本上,我希望从9a30d13的更改与a610898的更改相结合,以便新的历史记录为
$ git log
commit 4a6729e
commit 4a6729e
commit 4a6729e
commit a610898 + 9a30d13
我没有推送任何东西。
谢谢。
git rebase --interactive **somesha**
命令时得到的编辑器。 - Chronial