【发布时间】:2011-09-23 01:14:59
【问题描述】:
我在master上,我做了rebase -i <my_branch>
知道了:
noop
# Rebase c947bec..7e259d3 onto c947bec
#
# 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 <cmd>, exec <cmd> = Run a shell command <cmd>, and stop if it fails
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#
我想选择一些提交,而不是全部,因为其中一些不受欢迎。
另外,当您想将某些文件或更改始终“本地”保留到某个分支时,您如何工作?有没有像.gitignore 这样的助手?
【问题讨论】: