It feels like there are 100 different ways to do a git log. Here’s one possible way… I’m using the OpenLiveWriter repo to demo since it has lots of branching going on.
P.S. The way to exit these log commands is to press ‘q’ when the colon appears, if you are following along at home.
let’s start with git log –graph.
But it’s too wordy to show the graph.
Let’s try git log –graph –pretty=oneline
Better, but the long commit IDs are throwing everything off.
Let’s try git log –graph –pretty=oneline –graph –abbrev-commit
And that’s about as close as I can get to a graph that looks like the graph in Visual Studio.
If you know of a better way, please share with the group! 🙂