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

前端 未结 11 1138
野性不改
野性不改 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:54

    I understand you want to trash your local changes and pull down what's on your remote?

    If all else fails, and if you're (quite understandably) scared of "reset", the simplest thing is just to clone origin into a new directory and trash your old one.

提交回复
热议问题