sync/git/gitconfig

36 lines
1.1 KiB
Plaintext

[user]
name = Austen Adler
email = stonewareslord@gmail.com
[alias]
i = "!git br&&git st"
pul = pull
pus = push --all
co = checkout
ci = commit -m
a = add
aa = add --all
st = status
br = branch -av
hist = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
d = 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"
wipe = !sh -c 'git filter-branch --prune-empty -f --index-filter \\\\\"git rm -rf --cached --ignore-unmatch \\\"$1\\\"\\\\\" --tag-name-filter cat -- --all' -
[push]
default = matching
[core]
excludesfile = /home/stonewareslord/.gitignore_global
[diff]
tool = vimdiff
[difftool]
prompt = false
[merge]
tool = diffconflicts
[mergetool "diffconflicts"]
cmd = diffconflicts vim $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
[credential]
helper = cache