Just a short and interesting tip today about
git log --graph. If you’re confused about where branches are headed or how merges worked, and you’re either too lazy to fire up
gitx, or the GitHub Network Graph, you can get a really simple and fast graphical representation of your commits with this command.
Let’s slim that down a bit to
git log --graph --pretty=oneline --abbrev-commit so we can get commits compressed and only show 7 characters from the SHA1:
Much better! Of course, there’s plenty of other ways to visualize your repository as well.
UPDATE: This command is included only in Git versions 1.5.6 and up.