Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Created November 8, 2012 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonyiii/4039677 to your computer and use it in GitHub Desktop.
Save bonyiii/4039677 to your computer and use it in GitHub Desktop.
git settings
Display what branch i'm on:
~/.bash_profile or .bashrc
export GIT_PS1_SHOWDIRTYSTATE=1
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
~/.gitconfig
[alias]
ci = commit
br = branch
co = checkout
st = status
prlog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --branches
[user]
name = My Name
email = my@email.com
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment