# 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 \"${3-$1}\" $2; }; f" tgd = tag -d tgsd = push --delete origin pu = "!f() { git push --atomic; }; f" sm = "!f() { git pull && git merge ${2-$(git config --get custom.serverbranch.remote)}/${1} && git push; }; f" raz = "!f() { git reset --hard && git clean -fd; }; 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 followTags = true [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f required = true process = git-lfs filter-process [custom "serverbranch"] remote = origin branch = master [diff] tool = vimdiff [difftool] prompt = false [include] path = ~/.gitconfig.local