Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The main function of git checkout is to move the HEAD pointer, i.e. then where your local copy is looking. You can move it to the top of the branch: or to a git checkout <branch>
separate commit :git checkout <sha>
git checkout -b
git checkout -- <file>
korobochkin wrote the main function of the command, I can also add that git checkout undoes file changes, it is enough to write git checkout <File name> and it will be returned to the primary commit state
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question