使用两条指令:

git reset --hard <commit_id>

git push origin HEAD --force

其中commit_id是你想回到的commit的id(即想删除的commit的前一个commit),可以在github.com的commit中查看。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-01-02
  • 2021-10-16
猜你喜欢
  • 2021-08-22
  • 2022-12-23
  • 2021-04-01
  • 2021-11-18
  • 2021-08-09
相关资源
相似解决方案