# Rebase 0dcdaac..dc0a087 onto 0dcdaac (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
# This is a combination of 3 commits. # This is the 1st commit message:
edit01
# This is the commit message #2:
edit02
# This is the commit message #3:
edit03
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Wed Jul 8 17:10:52 2020 +0800 # # interactive rebase in progress; onto 0dcdaac # Last commands done (3 commands done):
带 # 号的行不会显示,只需要修改之前我们自己添加的那些行就行了,这里修改为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
merge commit edit01-03
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Wed Jul 8 17:10:52 2020 +0800 # # interactive rebase in progress; onto 0dcdaac # Last commands done (3 commands done): # squash c6feb2a edit02 # squash dc0a087 edit03 # No commands remaining. # You are currently rebasing branch 'testrebase2' on '0dcdaac'. # # Changes to be committed: # modified: README.md #
# or you can config it by typing terminal git config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080 git config --global http.sslVerify false