Can't seem to discard changes in Git

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

    Are you on OSX or Windows? If so, the problem probably is having two files of the same name, with different case. eg. index.htm and Index.htm

    Windows, and by default OSX, uses a case insensitive file system, which conflicts with the case sensitive git.

提交回复
热议问题