dotfiles/gitconfig
2021-07-14 23:10:54 -05:00

36 lines
844 B
Plaintext

[init]
defaultBranch = main
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
br = branch
last = log -1 HEAD
cl = clone
cleanup = "!git branch --merged | egrep -v '(*|master|main|dev|develop)' | xargs -r git branch -d"
[user]
email = __[email]__
name = __[name]__
signingkey = __[signing_key]__
[url "git@github.com:"]
insteadOf = https://github.com
[core]
excludesfile = ~/.gitignore
[fetch]
prune = true
[rebase]
autosquash = true
[diff]
colorMoved = zebra
[commit]
gpgSign = true