# Rebase 92bf7d3..dce93fd onto 92bf7d3 (3 commands) # # Commands: # p, 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 message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>] # . create a merge commit using the original merge commit's # . message (or the oneline, if no original merge commit was # . specified). Use -c <commit> to reword the commit message. # E:/Blog/blog/.git/rebase-merge/git-rebase-todo [unix] (13:12 09/12/2019)2,1 顶端 "E:/Blog/blog/.git/rebase-merge/git-rebase-todo" [unix] 29L, 1214C
# Rebase 92bf7d3..dce93fd onto 92bf7d3 (3 commands) # # Commands: # p, 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 message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>] # . create a merge commit using the original merge commit's # . message (or the oneline, if no original merge commit was # . specified). Use -c <commit> to reword the commit message. #
# This is a combination of 3 commits. # This is the 1st commit message:
更新文章 # This is the commit message #2:
更新文章 # This is the commit message #3:
更新文章
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Dec 9 13:08:03 2019 +0800 # # interactive rebase in progress; onto 92bf7d3 # Last commands done (3 commands done): # squash 1fcec38 更新文章 # squash dce93fd 更新文章
# This is a combination of 3 commits. # This is the 1st commit message:
更新文章_压缩得到的新的commit的描述信息 # This is the commit message #2:
更新文章_之前的commit描述1 # This is the commit message #3:
更新文章_之前的commit描述2
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Dec 9 13:08:03 2019 +0800 # # interactive rebase in progress; onto 92bf7d3 # Last commands done (3 commands done): # squash 1fcec38 更新文章 # squash dce93fd 更新文章
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Dec 9 13:08:03 2019 +0800 # # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # # Changes to be committed: # modified: source/_posts/Git/git rebase命令.md #
修改为如下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
更新文章_压缩得到的新的commit的描述信息
更新文章_之前的commit描述1
更新文章_之前的commit描述2
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Dec 9 13:08:03 2019 +0800 # # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # # Changes to be committed: # modified: source/_posts/Git/git rebase命令.md #
1 2 3 4 5 6 7 8 9 10 11 12 13
更新文章 # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Dec 9 13:08:03 2019 +0800 # # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # # Changes to be committed: # modified: source/_posts/Git/git rebase命令.md #