Git修改提交的注释(commit message)的方法

如果是最后一次提交,并没有push

git commit --amend -m "your new message"

其他情况参考:https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits

猜你喜欢

转载自www.cnblogs.com/byronliu029/p/9392191.html