Answer the question
In order to leave comments, you need to log in
How to go forward in git?
Let's say I have 5 commits. I'm at the last commit (5), I want to restore the files to the state at 3 commit, I do git reset --hard 3. Then I decided that I want to go back to the 5th commit, but the git log only shows commits up to 3. How do I get there in the 5th commit?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question