Skip to content

Instantly share code, notes, and snippets.

@ruiwen
Last active December 18, 2015 16:29
Show Gist options
  • Save ruiwen/5811625 to your computer and use it in GitHub Desktop.
Save ruiwen/5811625 to your computer and use it in GitHub Desktop.
Recommended git configs
# Stick this in your repo's .git/config
# OR ~/.gitconfig
#
# Also,
# $ sudo apt-get install bash-completion
# for autocompletion goodness
[color]
ui = always
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log --all --pretty=format:\"%C(yellow)%h%Creset %s %Cred%d%Creset [%C(green)%aN%Creset %C(blue)%ar%Creset]\" --decorate --graph
#logo = log --decorate --oneline --graph --all #--pretty="%C(yellow)%h%Creset %s %Cred%d%Creset [%C(green bold)%aN%Creset %C(blue)%ar%Creset]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment