Can't seem to discard changes in Git

后端 未结 20 1343
傲寒
傲寒 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:50

    Here is my experience, set following variables in .git/config:

    [core]
        autocrlf = false
        safecrlf = false
        eol = crlf
    

    then run $ git checkout HEAD ., and it works. but $ git checkout -- . not, strange!

    * git version 1.9.3

提交回复
热议问题