Can't seem to discard changes in Git

后端 未结 20 1375
傲寒
傲寒 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 22:01

    This is an old question, but was still relevant to me. I did not find my answer until asking around the office, and discovered that the problem was with submodules. When they are updated, and your own repository does not reflect those changes, it shows up as having differences, reseting the head doesn't help. If this is the case, run:

    git status update
    

    That should help fix things (in this particular case)

提交回复
热议问题