Show diff when writing commit messages during an interactive rebase

前端 未结 3 1162
礼貌的吻别
礼貌的吻别 2021-02-19 21:54

When doing a regular git commit, git commit --verbose shows the diff in the text editor when writing the commit message.

Suppose I am doing an interactive r

3条回答
  •  萌比男神i
    2021-02-19 22:12

    You can do:

    git -c commit.verbose=true rebase --continue
    

    If you get tired copying that command you can create an alias in your ~/.gitconfig:

    [alias]
        myrebasecontinue = "!git -c commit.verbose=true rebase --continue"
    

    And now just do:

    git myrebasecontinue
    

提交回复
热议问题