dotfiles/vcs/git/gitconfig

93 lines
2.6 KiB
Plaintext
Raw Normal View History

2010-06-25 14:11:53 +10:00
[alias]
2015-08-07 15:19:00 +10:00
st = status
2013-12-04 05:49:47 +11:00
pl = pull --rebase
p = push
co = checkout
c = commit
ca = commit -a
diff = diff --word-diff
dc = diff --cached
lp = log --patch
lg = log --decorate --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
2014-04-02 12:18:46 +11:00
shas = log --reverse --pretty=format:'%h' --abbrev-commit
2013-12-04 05:49:47 +11:00
me = !sh -c 'echo `git config user.name` \\<`git config user.email`\\>'
2013-12-04 06:13:24 +11:00
mine = !sh -c 'git lg --author=\"`git me`\"'
2017-04-02 10:20:10 +10:00
br = branch
2014-01-21 18:52:23 +11:00
# TODO make this use selecta, when installed
2013-12-04 05:49:47 +11:00
f = "!git ls-files | grep -i"
# Add file excluding whitespace changes (http://stackoverflow.com/a/7149602/56690)
addnw = !sh -c 'git diff -w --no-color "$@" | git apply --cached --ignore-whitespace' -
2011-11-08 17:54:51 +11:00
unadd = reset HEAD
2013-03-12 04:56:47 +11:00
ctags = "!$(git rev-parse --show-toplevel)/.git/hooks/ctags"
2012-12-05 11:55:49 +11:00
latest = for-each-ref --sort=-committerdate --format='%(committerdate:relative) -> %(refname:short)'
2013-12-04 05:49:47 +11:00
branch-name = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
assumeall = "!git st -s | awk {'print $2'} | xargs git assume"
2014-04-03 18:29:53 +11:00
# From https://github.com/garybernhardt/dotfiles/blob/master/bin/git-churn
churn = "!git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g"
2010-06-25 14:11:53 +10:00
[apply]
2013-04-01 08:03:55 +11:00
whitespace = fix
2010-06-25 14:11:53 +10:00
[color]
2011-11-08 17:54:51 +11:00
branch = auto
diff = auto
status = auto
ui = auto
2010-06-25 14:11:53 +10:00
[core]
2011-11-08 17:54:51 +11:00
attributesfile = ~/.gitattributes
excludesfile = ~/.gitignore
2013-04-01 08:03:55 +11:00
whitespace = trailing-space,space-before-tab
precomposeunicode = true
editor = vim -u NONE +0 -c 'syntax on'
2010-06-25 14:11:53 +10:00
[branch]
2011-11-08 17:54:51 +11:00
autosetupmerge = always
autosetuprebase = local
2010-06-25 14:11:53 +10:00
[diff "ruby"]
2011-11-08 17:54:51 +11:00
funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\)
2011-09-20 06:12:35 +10:00
[github]
2011-11-08 17:54:51 +11:00
user = bjeanes
[init]
templatedir = ~/.git_template
2012-08-17 06:57:02 +10:00
[include]
path = .gitconfig.github
path = .gitconfig.pushurls
path = .gitconfig.merge
2012-08-17 06:57:02 +10:00
path = .gitconfig.local
2012-10-23 15:31:31 +11:00
[credential]
2013-04-01 08:03:55 +11:00
username = bjeanes
2012-10-23 15:31:31 +11:00
helper = osxkeychain
2012-11-24 10:36:53 +11:00
[diff]
2013-04-01 08:03:55 +11:00
algorithm = minimal
mnemonicprefix = true
renames = copies
2017-04-02 10:19:47 +10:00
tool = ksdiff
[difftool]
prompt = false
[difftool "ksdiff"]
cmd = "ksdiff $LOCAL $REMOTE"
2013-10-12 04:01:55 +11:00
[pull]
rebase = true
[heroku]
account = heroku
[push]
2015-08-07 15:19:00 +10:00
default = current
2014-05-24 02:06:06 +10:00
[advice]
statusHints = false
2015-08-07 15:19:00 +10:00
[remote]
pushdefault = origin
[status]
short = true
branch = true
showUntrackedFiles = all
submoduleSummary = 1
[versionsort]
prereleaseSuffix = -rc
prereleaseSuffix = -pre
prereleaseSuffix = -alpha
prereleaseSuffix = -beta