撤消Git中一個文件的工做副本修改? - Undo working copy modifications of one file in Git?

問題:

After the last commit, I modified a bunch of files in my working copy, but I want to undo the changes to one of those files, as in reset it to the same state as the most recent commit. 在最後一次提交以後,我修改了工做副本中的一堆文件,可是我想撤消對這些文件之一的更改,例如將其重置爲與最新提交相同的狀態。 spa

However, I only want to undo the working copy changes of just that one file alone, nothing else with it. 可是,我只想撤消僅一個文件的工做副本更改,而沒有其餘操做。 .net

How do I do that? 我怎麼作? get


解決方案:

參考一: https://stackoom.com/question/2u5G/撤消Git中一個文件的工做副本修改
參考二: https://oldbug.net/q/2u5G/Undo-working-copy-modifications-of-one-file-in-Git
相關文章
相關標籤/搜索