I have been reading other questions on stack overflow but nothing simply explains what I need. I am pushing to a remote repo with one other collaborator. I want to check out a past commit from a few weeks ago. How do I do this?
I have been reading other questions on stack overflow but nothing simply explains what
Share
(this will create a new branch and checkout at that particular commit that you want)
If you just want to reset current branch to it:
Update on sha1:
What I meant by Sha1 is this long hash that is associated with each commit and identifies it. You can easily find it by doing a
git logSample git log output:
10a45e0f0680b8fd493ed0264fe24be2648af1b3is the sha1 hash.