Go to particular revision

Before executing this command keep in mind that it will leave you in detached head status Use git checkout <sha1> to check out a particular commit. Where <sha1> is the commit unique number that you can obtain with git log Here are some options after you are in detached head status: Copy the files or … Read more

How can I view file history in Git?

Use git log to view the commit history. Each commit has an associated revision specifier that is a hash key (e.g. 14b8d0982044b0c49f7a855e396206ee65c0e787 and b410ad4619d296f9d37f0db3d0ff5b9066838b39). To view the difference between two different commits, use git diff with the first few characters of the revision specifiers of both commits, like so: # diff between commits 14b8… and … Read more