Using git, how do I go back to first commit then go through the history?

You can check out any revision by giving its SHA1 id:

git checkout <SHA1>

A helper script called git-walk has been made for this. Even if you won’t use the explicit script, look at the (very simple) code to see what is done.

You may Also Like:

None found

Leave a Comment