Git - 删除github上的提交历史

参考

  1. https://segmentfault.com/q/1010000002898735
  2. https://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git

方法一可行,但貌似不建议,留坑

  1. git reset –hard commit_hash
  2. git push origin –force
posted @ 2018-06-01 20:27  Rocin  阅读(1534)  评论(0编辑  收藏  举报