我在硕士和我做 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
这样的帮手吗?