changing git comment of a pushed commit
This question already has an answer here:
I'm not sure you're going to be able to if it's not the latest push. How do I edit an incorrect commit message in git (I've pushed)?
Maybe two ways to resolve your problem :
> If your pushed commit is the last on your branch
Remove your remote branch, "git reset --soft HEAD~1", commit with your new message, and push your branch again.
> If your pushed is in the middle of the branch
Remove your remote branch, "git rebase -i " where is your commit place, choose "edit" for your commit, and push your branch again.
Remove/Create remote branch is very tricky... So take care to prevent your team first ;)
链接地址: http://www.djcxy.com/p/1400.html上一篇: 在Git中更改错误的提交消息
下一篇: 改变推送提交的git注释