How to get back to most recent version in Git?

前端 未结 10 1195

I have recently moved from SVN to Git and am a bit confused about something. I needed to run the previous version of a script through a debugger, so I did git checkout <

10条回答
  •  耶瑟儿~
    2021-01-29 18:31

    This did the trick for me (I still was on the master branch):

    git reset --hard origin/master
    

提交回复
热议问题