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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM