在 Git 历史记录中撤消提交

Ant*_*nio 5 git

我想撤消 git 历史记录“中间”的单个推送提交,即它不是最近的提交。

我应该使用git revert <commit hash>, git cherry-pick, 还是其他什么?

Dav*_*sch 6

使用git revert <commit hash>git cherry-pick适用于当您想要重做提交时。