I'm using Mac terminal for git and I'm trying checkout my other version of log by command git checkout
but when I'm executing the command it's showing me that head is now at 12344 but I want to see the code at that time, I don't know how to do it. Please help.
Asked
Active
Viewed 37 times
1

Pang
- 9,564
- 146
- 81
- 122

Shiv Shankar
- 59
- 1
- 6
1 Answers
0
You could checkout by date.
Or even using a relative date
git checkout `git rev-list -n 1 --before="3 days ago" master`
But be aware your checkout will be in detached head mode.

VonC
- 1,262,500
- 529
- 4,410
- 5,250