最近提交一个pr但是被要求修改了,于是我重新执行了git命令进行commit覆盖。
git add -A
git commit --amend
git push --force-with-lease
push之前可以检查一下branch: git branch -vv

https://docs.github.com/cn/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message