How to commit no change and new message?

后端 未结 5 1696
爱一瞬间的悲伤
爱一瞬间的悲伤 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:32

    Maybe as a more sensible alternative, you could create an annotated tag (a named commit with a message). See the git tag -a option.

提交回复
热议问题