如何撤消Git中的最新本地提交? - How do I undo the most recent local commits in Git?

問題:

I accidentally committed the wrong files to Git , but I haven't pushed the commit to the server yet. 我不當心將錯誤的文件提交給Git ,可是我尚未將提交推送到服務器。 服務器

How can I undo those commits from the local repository? 如何撤消本地存儲庫中的那些提交? ide


解決方案:

參考一: https://stackoom.com/question/3tFO/如何撤消Git中的最新本地提交
參考二: https://oldbug.net/q/3tFO/How-do-I-undo-the-most-recent-local-commits-in-Git
相關文章
相關標籤/搜索