Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (87 sloc) 2.57 KB
[core]
excludesfile = /home/ptarjan/.gitignore
### colors are meant for a dark terminal
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = white blue bold
local = blue
remote = green
[color "diff"]
plain = white
meta = yellow bold
frag = magenta bold
old = red
new = green
whitespace = red blink
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
bb = bisect bad
bg = bisect good
br = branch
gr = grep -i
ca = commit --amend -a -C HEAD
co = checkout
st = status
di = diff
edit = !$EDITOR `git diff HEAD^ --name-only`
gcbr = !git branch --no-color --no-track --merged | sed 's/[ *]*//' | grep -v master | xargs -n1 git branch -d || exit 0
rall = "!git stash -u; git branch --no-color --no-track | sed 's/[ *]*//' | grep -v master | xargs -I % sh -c 'git co %; git r origin/master; git ra; git reset --hard; git clean -f; git clean -fdx'"
n = "!n() { git checkout origin/master -b ptarjan-$1; }; n "
r = rebase
rom = rebase origin/master
ri = rebase origin/master -i
f = fetch
p = "!p() { BRANCH=\"$(git symbolic-ref HEAD)\"; BRANCH=\"${BRANCH#refs/heads/}\"; git push -u origin \"$BRANCH\"; URL=\"$(git remote get-url origin)\"; URL=\"${URL/git@github.com:/https://github.com/}\"; URL=\"${URL/.git//}\"; open \"$URL/compare/${BRANCH//\\//%2F}?expand=1\"; }; p"
s = svn dcommit
rc = !git add . && git rebase --continue
ra = rebase --abort
rbi = rebase -i
vim = !bash -c 'vim $(git diff --name-only)' -
u = branch --set-upstream-to=origin/master
land = !git rebase -i origin/master && git push -u origin -f
[svn]
followparent = true
rmdir = true
[user]
name = ptarjan
email = github@paulisageek.com
[log]
date = relative
[blame]
date = short
[diff]
renames = true
mnemonicprefix = true
[merge]
tool = emerge
[status]
# relativePaths = false
[rebase]
stat = true
[gc]
auto = 0
[credential]
helper = osxkeychain
[push]
default = simple
# "push.default = simple" is the default in git 2.0, but OS X still ships git
# 1.9.3 ("push.default = matching") as of 10.10.2, so... we explicitly specify
# the modern default to try and keep things sane if you accidentally use the
# OS-provided git instead of the modern one from our package manager. When a
# majority of Macs here are running OS X that ships git >= 2.0, we can likely
# remove this.
[push]
default = simple
[url "git@github.com:"]
insteadOf = https://github.com/
# http://stackoverflow.com/questions/18257622/why-is-git-core-preloadindex-default-value-false
[core]
preloadindex = true