Skip to content

Instantly share code, notes, and snippets.

@jongrover
Created April 3, 2014 17:28
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 jongrover/9958914 to your computer and use it in GitHub Desktop.
Save jongrover/9958914 to your computer and use it in GitHub Desktop.
Git configuratiuon
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = /Users/jonathangrover/.gitignore_global
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
who = shortlog -s --
up = pull
pr = pull --rebase
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
switch = !legit switch \"$@\"
branches = !legit branches
sprout = !legit sprout \"$@\"
unpublish = !legit unpublish \"$@\"
harvest = !legit harvest \"$@\"
sync = !legit sync \"$@\"
publish = !legit publish \"$@\"
graft = !legit graft \"$@\"
[github]
user = jongrover
token = c7a1c5b3a992a4a4ef7d2165718b02cffe1a1408
email = hello@jonathangrover.com
[github "user"]
user = jongrover
token = c7a1c5b3a992a4a4ef7d2165718b02cffe1a1408
email = hello@jonathangrover.com
[user]
name = jongrover
email = hello@jonathangrover.com
[color]
ui = true
diff = auto
status = auto
branch = auto
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[diff "ruby"]
funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\)
[push]
default = current
[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
[merge]
tool = opendiff
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment