Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

Git /

Checking out

Through the log, one has access to all the versions of the code that has been committed. Each can be accessed using

git checkout CommitHash

where the commit hash is the series of numbers and letters given by git log. This will allow you to view the files exactly as they once were.

Navigating the tree

An odd side effect of checking out is that the log will also behave exactly as it would have at the time of that commit. Which means you will only see commits that happened before the one that is currently checked out. This can be scary at first, but the later changes are not lost. You can get back to the HEAD of your branch with:

git checkout branch

If you have changed the location of your HEAD, but want to go somewhere else, you will need to reset instead.

Edit - History - Print - Recent Changes - Search
Page last modified on October 02, 2015, at 09:43 PM