Skip to content

Instantly share code, notes, and snippets.

@gebi
Created November 18, 2016 16:30
Show Gist options
  • Save gebi/3f71e9160ee55de1a316b4b3c75cff49 to your computer and use it in GitHub Desktop.
Save gebi/3f71e9160ee55de1a316b4b3c75cff49 to your computer and use it in GitHub Desktop.
Git config
[alias]
a = annex
sf = svn fetch
sr = svn rebase
sd = svn dcommit
s = status
st = status
sb = show-branch
b = branch
c = clone
ci = commit
co = checkout
r = remote
rr = reset
f = fetch
p = pull
m = merge
d = diff
dc = diff --cached
dw = diff --color-words
w = wtf
sm = submodule
out = push --dry-run
l = log --graph --all --topo-order --pretty=format':%C(yellow)%h%C(red)%d%Creset %s %Cgreen %an%C(blue) %ar%Creset'
pack = !sh -c 'du -sh $(git rev-parse --show-cdup).git/objects && nice git gc --aggressive && du -sh $(git rev-parse --show-cdup).git/objects'
purge = !git checkout $(git rev-parse --show-cdup) && git clean -xdf
serve = !sh -c 'git daemon --reuseaddr --verbose \"$@\" --base-path=. --export-all ./.git' sh
tagme = !sh -c '[ -z "$1" ] && exit 1 || git tag -s \"$1\" -m \"release \"$1\"\"' sh
new = log -C -M --reverse -p origin/master...
tree = log --oneline --decorate --graph
[color]
ui = auto
[push]
#default = matching
#default = upstream
#default = simple
default = current
[color "status"]
untracked = yellow
[core]
excludesfile = /etc/gitignore
compression = 9
[gc]
auto = 0
[svn]
rmdir = true
[pack]
threads = 0
[receive]
denyCurrentBranch = ignore
.*.sw?
*.o
*.pyc
*.pyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment