How to get back to most recent version in Git?

前端 未结 10 1190

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:21

    You can check out using branch names, for one thing.

    I know there are several ways to move the HEAD around, but I'll leave it to a git expert to enumerate them.

    I just wanted to suggest gitk --all -- I found it enormously helpful when starting with git.

提交回复
热议问题