How can I push a Git commit that does not change code
This question already has an answer here:
That's when you use git commit --amend
. Look at the docs:
Changing your most recent commit is probably the most common rewriting of history that you'll do. You'll often want to do two basic things to your last commit: simply change the commit message, or change the actual content of the commit by adding, removing and modifying files.
If you simply want to modify your last commit message, that's easy:
$ git commit --amend
链接地址: http://www.djcxy.com/p/49850.html
上一篇: 如何更改bitbucket中的git commit消息
下一篇: 我如何推送不改变代码的Git提交