Skip to content

Instantly share code, notes, and snippets.

@mrdrozdov
Created November 6, 2016 01:27
Show Gist options
  • Select an option

  • Save mrdrozdov/3f1ff55a27f1f558138b18feed62d61d to your computer and use it in GitHub Desktop.

Select an option

Save mrdrozdov/3f1ff55a27f1f558138b18feed62d61d to your computer and use it in GitHub Desktop.
sample .gitconfig
[user]
name = Andrew Drozdov
email = andrew@mrdrozdov.com
[credential]
helper = osxkeychain
[color]
ui = true
[alias]
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
undo-commit = reset --soft HEAD^
untrack = update-index --assume-unchanged
retrack = update-index --no-assume-unchanged
alias = config --get-regexp alias
[rerere]
enabled = 1
[core]
excludesfile = /Users/Andrew/.gitignore_global
editor = vim
[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
[http]
cookiefile = /Users/Andrew/.gitcookies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment