Skip to content

Instantly share code, notes, and snippets.

@pratul
Last active August 29, 2015 13:57
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 pratul/9829380 to your computer and use it in GitHub Desktop.
Save pratul/9829380 to your computer and use it in GitHub Desktop.
My gitconfig
[user]
name = Pratul Kalia
email = pratul@pratul.in
[alias]
br = branch
cm = commit -am
cma = commit -a
co = checkout
di = diff
dil = diff HEAD^..HEAD
g = grep -n
graph = log --graph --pretty=oneline --abbrev-commit
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
pullo = pull origin master
pur = pull --rebase
pusho = push origin master
st = status -uall
[color]
ui = true
diff = auto
[clean]
requireForce = false
[core]
editor = vim
excludesfile = /Users/lut4rp/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[push]
default = matching
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment