Skip to content

Instantly share code, notes, and snippets.

@mediafinger
Last active August 29, 2015 13:56
Show Gist options
  • Save mediafinger/9054412 to your computer and use it in GitHub Desktop.
Save mediafinger/9054412 to your computer and use it in GitHub Desktop.
[user]
name = "Your Name"
email = "Your Email"
[github]
user = yourusername
[alias]
st = status
co = checkout
b = branch
com = !git add . && git commit -am
merges = !git log --merges --oneline | grep 'Merge pull request'
d = diff --staged
unstage = !git reset HEAD && git checkout .
untrack = clean -df
showmerged = branch -r --merged
[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
[push]
default = current
[branch]
autosetupmerge = true
autosetuprebase = always
[branch "master"]
rebase = true
[merge]
summary = false
tool = opendiff
[core]
# excludesfile = $HOME/.gitignore_global
whitespace = -indent-with-non-tab,trailing-space,space-before-tab,cr-at-eol,fix
[apply]
whitespace = fix
[gc]
auto = 1 # automatic garbage collection to keep git fast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment