【发布时间】:2013-01-10 03:50:33
【问题描述】:
我在 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
我在 Google 上搜索过,但我不明白如何做到这一点。
【问题讨论】:
-
你不必再挤了:店主可以为你做(自 2016 年 3 月起):见stackoverflow.com/a/36377439/6309
标签: git github pull-request squash