Can't seem to discard changes in Git

后端 未结 20 1336
傲寒
傲寒 2020-11-29 21:17

After seeing the following from the command line:

# On branch RB_3.0.10
# Changed but not updated:
#   (use \"git add ...\" to update what will b         


        
20条回答
  •  情深已故
    2020-11-29 21:51

    I had .gitattributes with the following content:

    * text=auto eol=lf

    To overcome the issue, edit .gitattributes to remove this line which relaxes line endings. Then git reset --hard HEAD reverted the files and .gitattributes file.

提交回复
热议问题