Skip to content

Instantly share code, notes, and snippets.

@lepture
Created January 7, 2011 07:29
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 lepture/769225 to your computer and use it in GitHub Desktop.
Save lepture/769225 to your computer and use it in GitHub Desktop.
git config
[core]
editor=vim
[merge]
tool = vimdiff
[alias]
st = status
ci = commit -a
br = branch
df = diff
co = checkout
who = shortlog -s --
unstage = reset HEAD --
last = log -1 HEAD
lg = log --graph --pretty='format:%Cblue%an%Creset commit at %Cgreen%ar%Creset: \n %Cred%h%Creset %C(yellow)%d%Creset %s\n'
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
lc = "! git log --pretty=oneline|wc -l"
[color]
ui = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment