# x, exec = run command (the rest of the line) using shell# d, drop = remove commit“`2. 对于你想要修改的commit,将”pick”替换为”edit”,然后保存并关闭文件。比如,假设你想要修改第二个commit,将文件修改为如下内容:“`pick afbd32e Commit message 1edit daf3842 Commit message 2pick 9ac...
pick <commit> = use commit# r, reword <commit> = use commit, but edit the commit message# e, edit <commit> = use commit, but stop for amending# s, squash <commit> = use commit, but meld into previous commit# f, fixup <commit> = like "squash", but discard this commit's log...
# r, reword <commit> = use commit, but edit the commit message # e, edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec ...
pick =use commit9# r, reword =use commit, but edit the commit message10# e, edit = use commit, but stopforamending11# s, squash =use commit, but meld into previous commit12# f, fixup = like
9 # r, reword = use commit, but edit the commit message 10 # e, edit = use commit, but stop for amending 11 # s, squash = use commit, but meld into previous commit 12 # f, fixup = like "squash", but discard this commit's log message ...
8 # p, pick <commit> = use commit 9 # r, reword <commit> = use commit, but edit the commit message 10 # e, edit <commit> = use commit, but stop for amending 11 # s, squash <commit> = use commit, but meld into previous commit ...
8 # p, pick <commit> = use commit 9 # r, reword <commit> = use commit, but edit the commit message 10 # e, edit <commit> = use commit, but stop for amending 11 # s, squash <commit> = use commit, but meld into previous commit ...
It not only helps understand what commits were about but more importantly makes juniors think about the work they have done and most often we found that they go back to edit the commit. For example by splitting them into two or actually rewriting the code because they notice a single ...
Git 使用规范 一、user.name 配置 Git 的 user.name 配置一定要使用自己的中文名称。命令行操作方式如下: 二、Commit message 的作用 ...
edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec = run command (the rest of the line) using shell # b, break = stop he...