Created
June 26, 2012 15:13
-
-
Save rody/2996363 to your computer and use it in GitHub Desktop.
Better log format in Git (Colorblind proof) and a nice bash prompt
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
Git log : | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
Bash prompt | |
export PS1'=\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am red-green colorblind and this gist helps me see commits more easily and will be the base example I use to modify my .rc files. I see it only has one star, but know that your work from 5 years ago has positively impacted my work today, thank you!