修改 git log

修改最新的log

git commit --amend

git push -f #强制推送

修改历log

git rebase -i HEAD~2

pick 1f639c0 222
pick a8aef3a 4333
改为

pick 1f639c0 222
edit 8aef3a 4333

 git commit --amend

git rebase --continue

git push -f #强制推送


原文地址:https://www.cnblogs.com/idyllcheung/p/11715203.html