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

猜你喜欢

转载自www.cnblogs.com/allen2333/p/9123315.html