You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB
Plaintext

# vim: syntax=gitconfig
[color]
diff = auto
status = auto
branch = auto
[alias]
cf = config --includes
co = commit
com = commit -m
coa = commit -a
coam = commit -am
ck = checkout
st = status
br = branch
bru = remote update origin --prune
brsa = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} ${2-$(git config --get custom.serverbranch.remote)}/${3-$(git config --get custom.serverbranch.branch)}:refs/heads/${1}; }; f"
brsd = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} :heads/${1}; }; f"
link = branch --track
lo = log --date=format-local:'%d/%m/%Y %H:%M:%S' --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %cd - %s' --abbrev-commit
ls = lo --stat
ln = lo -n
lns = ls -n
uf = checkout --
cb = checkout
untrack = rm --cached
tg = "!f() { git tag -a $1 -m \"${2-$1}\" }; f"
pu = "!f() { git push && git push --tags }; f"
sm = "!f() { git pull && git merge ${2-$(git config --get custom.serverbranch.remote)}/${1} && git push; }; f"
submodule-del = "!f() { git submodule deinit -d -- ${1}; rm -rf .git/modules/${1}; git rm -f ${1}; }; f"
[core]
editor = vim
autocrlf = false
[push]
default = current
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[custom "serverbranch"]
remote = origin
branch = master
[diff]
tool = vimdiff
[difftool]
prompt = false
[include]
path = ~/.gitconfig.local