dotfiles/gitconfig
2022-05-04 23:53:20 -05:00

39 lines
1.0 KiB
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"
history = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[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
[sequence]
editor = interactive-rebase-tool