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

后端 未结 12 747
北海茫月
北海茫月 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:49

    this is how I fixed the same problem in my case: open .gitattributes change:

    * text=auto
    

    to:

    #* text=auto
    

    save and close , then revert or reset, thanks to @Simon East for the hint

提交回复
热议问题