Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Created June 18, 2009 20:18
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 jeremyf/132166 to your computer and use it in GitHub Desktop.
Save jeremyf/132166 to your computer and use it in GitHub Desktop.
[user]
name = Jeremy Friesen
email = jeremy.n.friesen@gmail.com
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = red reverse
local = red bold
remote = yellow
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = magenta
[apply]
whitespace = strip
[branch]
autosetupmerge = true
[alias]
ci = commit -v -a
st = status
rs = reset --hard HEAD
ba = branch -a
co = checkout
unmerged-edit = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; mate `f`"
unmerged-add = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
hub = "! br=$(git branch --contains HEAD | sed -En \"s/^\\* //p\"); if ! git ls-remote . | grep -q -e \"refs/remotes/.*/${br}\"; then br=\"master\"; fi; open $(git config -l | sed -En \"s%remote.origin.url=git(@|://)(github.com)(:|/)(.+/.+).git%https://\\2/\\4/tree/${br}%p\")"
hub-issue = "! open $(git config -l | sed -En \"s%remote.origin.url=git(@|://)(github.com)(:|/)(.+/.+).git%https://\\2/\\4/issues%p\")"
[core]
excludesfile = /Users/jeremyf/.gitignore
[github]
user = jeremyf
token = ********************************
[gui]
spellingdictionary = none
diffcontext = 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment