Git commands

Posted on Mon 09 October 2017 in Notes

Graph of git history with abbreviated commit hash.

git log --pretty=format:"%h %s" --graph --since=2.weeks

Checkout an old commit

git checkout 1588a65