Git /
Checking outThrough the log, one has access to all the versions of the code that has been committed. Each can be accessed using
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 treeAn 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:
If you have changed the location of your |