git graph
Add the following to your ~/.gitconfig
to view your git "graph":
You may need to create ~/.gitconfig
[alias]
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset'
With your git configured this way you can run git graph
in a repository to view a graph like the following, taken from the open source project boardroom:
Grouping relevant commits in git is valuable. Doing so in such a way that does not render your git history incomprehensible isn't that difficult, but you have to be deliberate about it. Check out my friend Rudy's quick explanation of how to do this.
full-disclosure I learned this from Brian Riley
Written by Michael
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#