How to commit no change and new message?

后端 未结 5 1702
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 11:01

How can I make a new commit and create a new message if no changes are made to files?

Is this not possible since the commit\'s code (SHA ?) will be the

5条回答
  •  日久生厌
    2020-12-02 11:38

    If I understood you right, you want to make an empty commit. In that case you need:

    git commit --allow-empty
    

提交回复
热议问题