Skip to content

Instantly share code, notes, and snippets.

@parabuzzle
Created October 26, 2009 18:07
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 parabuzzle/218884 to your computer and use it in GitHub Desktop.
Save parabuzzle/218884 to your computer and use it in GitHub Desktop.
#
# ini for git
#
[user]
name = "Bart Trojanowski"
email = "bart@jukie.net"
editor = vim
signingkey = 2289688F
[core]
whitespace = trailing-space,space-before-tab,indent-with-non-tab,cr-at-eol
[color]
pager = true
ui = auto
[merge]
tool = vimdiff
[apply]
#whitespace = strip
[sendemail]
smtpserver = mail.jukie.net
[alias]
rclone = clone --reference /git/cache.git/
last = cat-file commit HEAD
st = ls-files --exclude-per-directory=.gitignore \
--exclude-from=.git/info/exclude \
-t -o -u -s -m -d
stc = diff --stat --name-status --cached
cat = -p cat-file -p
up = !git remote update ; git gc
debug = !GIT_PAGER= gdb --args git
top = !eval cd "$(pwd)/$(git rev-parse --show-cdup)" && pwd
push-head = !git push origin `git symbolic-ref HEAD`
publish = push publish
pushall = !git remote | xargs -n1 git push
pushalltags = !git remote | xargs -n1 git push --tags
tblog = log --not-grep='Auto-increment of build number due to changes in directory '
tbk = !gitk --not-grep='Auto-increment of build number due to changes in directory '
vgc = repack -f -a -d --depth=250 --window=250
nvgc = !ionice -n7 nice -n20 git vgc
svnup = !git config --get-regexp 'svn-remote.*url' | cut -d . -f 2 | xargs -n1 git svn fetch
#cvscommit = !git --git-dir=`cat CVS/GitDir` cvsexportcommit -c -p -v
log1 = log --pretty=oneline --abbrev-commit --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
findnext = rev-list --reverse -n1 HEAD..master
checkoutnext = !git checkout `git findnext`
# example: git subdo pull
subdo = submodule foreach git
case = !sh -c 'exec /home/oxygen/bart/work/git-case/git-case.git/git-case-$0 ${0+"$@"}'
edit-last-commit = !vim `git diff-tree -r --name-only HEAD HEAD~1`
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
file-blame = !git ls-files | xargs -n1 -i{} git log -1 --pretty=format:\"%ci {}\" -- {}
amend = commit --amend -C HEAD
#test = !sh -c 'echo cmd=$1 arg1=$2 arg2=$3'
#dirstatus = !ls -d1 */.git | xargs -n1 -i{} sh -c \"cd {}/.. && echo Checking {} && git ls-files --exclude-standard -tousmd\"
[giggle]
compact-mode = false
main-window-maximized = false
main-window-geometry = 958x1139+960+36
[pack]
threads = 4
[push]
#default = tracking
default = matching
[gc]
reflogexpire = 300
reflogexpireunreachable = 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment