Local git repo force updated from a remote git repo. (thick-client deployments)

后端 未结 5 647
暖寄归人
暖寄归人 2021-01-15 05:46

Update: I think this is related to an issue with the windows git client msysgit. Sorry to trouble you guys. http://code.google.com/p/msysgit/issues/detail?i

5条回答
  •  遥遥无期
    2021-01-15 06:01

    It's strange, git reset --hard should remove any change made in the local repositories.

    you can try git stash && git pull, it just move the changes in some kind of temporay branch (git stash clear to remove any trace of the changes)

    if that does not work, you can try this (assuming you are on the master branch and that the tmp branch does not exists)

    git checkout origin/master -b tmp
    git branch -D master
    git branch -m master
    

提交回复
热议问题