Can't seem to discard changes in Git

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

    I also faced somewhat similar problem and the following steps helped me out:

    git commit -am 'temp commit'
    git pull origin master
    git reset head~1
    git reset head --hard
    

    Hope it helps other people as well.

提交回复
热议问题