sync/git/.gitconfig

62 lines
2.0 KiB
INI
Raw Normal View History

2018-07-04 13:49:36 -04:00
[include]
2019-01-08 11:01:56 -05:00
path = .config/gitconfig.custom
2014-04-19 13:25:29 -04:00
[alias]
i = "!git br&&git st"
2015-03-12 16:54:37 -04:00
# coa = "!for i in $(git branch -a|cut -b3-|grep remotes|sed -e 's/remotes\///'|cut -d/ -f1 --complement|cut -d\ -f1);do git checkout $i;done"
2014-05-30 12:45:50 -04:00
pul = pull
pus = push --all
2014-04-19 13:25:29 -04:00
co = checkout
ci = commit -m
2017-04-30 13:14:50 -04:00
aci = commit -am
aaci = "!git add --all;git commit -m"
2016-04-14 13:30:37 -04:00
setup = "!git init;git commit --allow-empty -m 'Initial commit'"
2014-04-19 13:25:29 -04:00
a = add
2015-01-13 11:16:38 -05:00
aa = add --all
2014-04-19 13:25:29 -04:00
st = status
br = branch -av
2014-05-27 19:36:53 -04:00
hist = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
2019-03-30 23:19:58 -04:00
dt = difftool
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
nbranch = !sh -c 'git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i"
2015-11-26 23:21:47 -05:00
x = "!exec "
2015-08-03 10:46:02 -04:00
unstage = reset HEAD --
2017-08-14 01:16:39 -04:00
up = pull --rebase --autostash
ignore = update-index --assume-unchanged
noignore = update-index --no-assume-unchanged
2017-08-29 11:42:06 -04:00
rename-branch = branch -m
2018-07-04 13:49:36 -04:00
find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :"
2019-03-30 23:19:58 -04:00
# n => no pager
ndiff = !git --no-pager diff
2019-04-05 14:30:27 -04:00
permission-reset = "!git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply"
2014-04-19 13:25:29 -04:00
[push]
2014-06-16 18:58:00 -04:00
default = matching
2014-04-19 13:25:29 -04:00
[core]
excludesfile = /home/stonewareslord/.gitignore_global
2016-07-22 16:46:35 -04:00
ignorecase = false
2014-04-19 13:25:29 -04:00
[diff]
2014-06-16 18:58:00 -04:00
tool = vimdiff
2014-04-19 13:25:29 -04:00
[difftool]
2014-06-16 18:58:00 -04:00
prompt = false
2014-04-19 13:25:29 -04:00
[merge]
tool = diffconflicts
[mergetool "diffconflicts"]
cmd = diffconflicts vim $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
[credential]
2014-11-14 09:20:04 -05:00
helper = cache
[color]
2016-06-16 19:27:57 -04:00
ui = auto
2016-04-21 14:09:55 -04:00
[gui]
2017-07-11 09:25:25 -04:00
[filter "lfs"]
2017-08-14 01:16:39 -04:00
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
2018-07-04 13:49:36 -04:00
[pager]
branch = false
2020-06-14 19:29:58 -04:00
[user]
name = Austen Adler
email = agadler@austenadler.com