Created
January 3, 2020 20:05
-
-
Save leopd/2a3341ae0de3a0dee0be7388df7283db to your computer and use it in GitHub Desktop.
Git dag - visualize git graph in ascii-color
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config --global alias.dag "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches" | |
# This adds a line to ~/.gitconfig like | |
# [alias] | |
# dag = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: https://stackoverflow.com/questions/7022890/how-to-display-the-tag-name-and-branch-name-using-git-log-graph