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! 🙂
I also like this:
git log –graph –oneline –all –decorate
LikeLike
Ah yes, that’s the combination I remember learning very early on! Thanks for sharing!
LikeLike