Skip to content

Instantly share code, notes, and snippets.

@ricardobeat
Created September 9, 2013 14:02
Show Gist options
  • Save ricardobeat/6495993 to your computer and use it in GitHub Desktop.
Save ricardobeat/6495993 to your computer and use it in GitHub Desktop.
Git config
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
log = true
tool = sublime
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[push]
default = tracking
[alias]
s = status -sb
lg = log -15 --graph --pretty=format:'%Cred%h%Creset %C(cyan)%an%Creset%Cred%d%Creset %s %Cgreen[%cr]' --abbrev-commit --date=relative
who = shortlog -sn
dip = diff --patience
stat = status -sb
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
[mergetool "sublime"]
cmd = subl -w $MERGED
trustExitCode = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment