git修改已经push过的commit message

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xixiaoxie2/article/details/78196182

git修改已经push过的commit message:
1、git rebase -i
2、在弹出的编辑页面,将要修改的错误的commit message前面的“pick”改为“reword”,然后保存
3、保存后会再弹出一个编辑页面,将里面错误的commit message改为想要的,然后保存
4、git push –force

猜你喜欢

转载自blog.csdn.net/xixiaoxie2/article/details/78196182