Git: How to revert 2 files that are stubbornly stuck at “Changed but not committed”?

后端 未结 12 736
北海茫月
北海茫月 2020-12-22 19:15

I have a repo that has two files that supposedly I changed locally.

So I\'m stuck with this:

$ git status
# On branch master
# Changed but not update         


        
12条回答
  •  情歌与酒
    2020-12-22 19:40

    Try to revert local changes:

    git checkout -- dir1/foo.aspx
    git checkout -- dir2/foo.aspx
    

提交回复
热议问题