git: Show index diff in commit message as comment

前端 未结 5 612
清歌不尽
清歌不尽 2021-01-30 05:10

When git commit open the message editor is shows a brief status, something like this:

# Please enter the commit message for your changes. Lines star         


        
5条回答
  •  温柔的废话
    2021-01-30 05:39

    The --verbose (or -v) flag for git commit will display the diff of what would be committed:

    git commit --verbose

提交回复
热议问题