Skip to content

Instantly share code, notes, and snippets.

@AlexKorovyansky
Last active August 29, 2015 13:56
Show Gist options
  • Save AlexKorovyansky/8998138 to your computer and use it in GitHub Desktop.
Save AlexKorovyansky/8998138 to your computer and use it in GitHub Desktop.
Template for .gitconfig
[user]
name = Alex Korovyansky
email = korovyansk@gmail.com
[core]
excludesfile = /Users/akorovyansky/.gitignore_global
editor = subl -n -w
[push]
default = simple
[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
[alias]
co = checkout
ci = commit
st = status
br = branch
lol = log --graph --decorate --pretty=oneline --abbrev-commit
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
undo = reset --hard
stat = show --stat
pull = pull --no-commit
[apply]
whitespace = nowarn
[color]
diff = auto
status = auto
branch = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment