Skip to content

Instantly share code, notes, and snippets.

@rody
Created June 26, 2012 15:13
Show Gist options
  • Save rody/2996363 to your computer and use it in GitHub Desktop.
Save rody/2996363 to your computer and use it in GitHub Desktop.
Better log format in Git (Colorblind proof) and a nice bash prompt
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\] '
@josephlei
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment