-[user]
- name = James Bunton
- email = jamesbunton@delx.net.au
-[color]
- ui = always
+[init]
+ templatedir = ~/.git-template
[core]
- pager = less -+F -+X
- editor = vim
+ excludesfile = ~/.gitignore_global
+[pager]
+ branch = less -F
+ tag = less -F
+[color]
+ ui = auto
[log]
decorate = full
[diff]
renamelimit = 10000
+ renames = copies
+ context = 5
+ algorithm = minimal
[push]
- # Set to tracking instead of upstream for backwards compatibility
- default = tracking
+ default = upstream
+[merge]
+ defaultToUpstream = true
+[transfer]
+ fsckObjects = true
+[fetch "fsck"]
+ zeroPaddedFileMode = warn
[alias]
graphlog = log --graph --pretty=format:'%C(bold black)%h%Creset %C(bold red)%ad %C(bold blue)%s%Creset %C(bold yellow)%d%Creset %C(bold black)<%an>%Creset' --date=short
ci = commit
ff = merge --ff-only
ffpull = pull --ff-only
lso = ls-files -X .gitignore -o
- newpush = !git push -u origin "$(git rev-parse --abbrev-ref HEAD)"
+ pushn = !git push origin --set-upstream "$(git rev-parse --abbrev-ref HEAD)":"$(git rev-parse --abbrev-ref HEAD)"
+ pushd = !git push origin --delete "$(git rev-parse --abbrev-ref HEAD)"
+ pushf = push --force-with-lease
+ cherry-pick = cherry-pick -x
+ branches-to-kill = !git branch --merged origin/master|grep -v master|xargs -n1 echo git branch -d
+ mergediff = !git checkout --quiet --detach HEAD && git merge --no-edit origin/master && git diff -C10 -M10 origin/master && git checkout --quiet -
+ expire-prune = !git reflog expire --expire=now --all && git gc --prune=now