Git 撤销上一次 commit

如果要撤销上一次 commit,请运行:

git reset --soft HEAD~1

相关文章:

参考: git commit后,如何撤销commit - 腾讯云开发者社区-腾讯云