Skip to content

Instantly share code, notes, and snippets.

@AnatoliyLitinskiy
Last active August 29, 2015 14:26
Show Gist options
  • Save AnatoliyLitinskiy/cf333e92d53e5d8e6b60 to your computer and use it in GitHub Desktop.
Save AnatoliyLitinskiy/cf333e92d53e5d8e6b60 to your computer and use it in GitHub Desktop.
show git tree
Add to ~/.bashrc file alias gr show tree without dates
echo 'alias gr="git log --graph --full-history --all --color --pretty=tformat:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m;\""' >> ~/.bashrc
add to ~/.bashrc file alias grd show tree with dates
echo 'alias grd="git log --graph --full-history --all --color --pretty=tformat:\"%x1b[31m%h%x09%x1b[36m%ad%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m;\" --date=iso"' >> ~/.bashrc
load new configuration to your command line interpretator without reloading
. ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment