这个问题已经在这里有一个答案:
- 壁球我最后的X犯下一起使用Git 29个回答
我做了GitHub上拉请求。 现在仓库的主人是说给所有提交挤进了一个。
当我键入git rebase -i
记事本中打开,其内容如下:
noop
# Rebase 0b13622..0b13622 onto 0b13622
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
我搜索在谷歌,但我不知道如何做到这一点。