git: How do I get the latest version of my code?

前端 未结 11 1154
野性不改
野性不改 2021-01-29 17:08

I\'m using Git 1.7.4.1. I want to get the latest version of my code from the repository, but I\'m getting errors ...

$ git pull
….
M   selenium/ant/build.proper         


        
11条回答
  •  春和景丽
    2021-01-29 17:29

    If you just want to throw away everything in your working folder (eg the results of a failed or aborted merge) and revert to a clean previous commit, do a git reset --hard.

提交回复
热议问题