dotfiles/gitconfig

72 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-06-17 21:22:17 +00:00
[init]
defaultBranch = main
templatedir = ~/.git_template
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[push]
default = current
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[color]
ui = auto
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[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
2021-07-12 21:19:22 +00:00
br = branch
last = log -1 HEAD
2021-07-15 04:10:54 +00:00
cl = clone
2022-10-08 01:18:33 +00:00
cleanup = "!git branch --merged | rg -v \"(\\*|master|main|dev|develop)\" | xargs -r git branch -d"
2021-07-21 18:17:30 +00:00
history = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
2022-05-17 16:53:27 +00:00
ignore = update-index --assume-unchanged
2022-12-12 18:30:09 +00:00
unignore = update-index --no-assume-unchanged
ls-ignores = "!git ls-files -v | rg "^h" | cut -f2 -d' '"
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[user]
2022-10-14 20:47:22 +00:00
email = {{email}}
name = {{name}}
signingkey = {{signing_key}}
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[url "git@github.com:"]
insteadOf = https://github.com
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[core]
excludesfile = ~/.gitignore
2022-05-31 15:37:33 +00:00
pager = delta
2021-06-17 21:22:17 +00:00
[fetch]
prune = true
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[rebase]
autosquash = true
2022-05-31 15:37:33 +00:00
2021-06-17 21:22:17 +00:00
[diff]
colorMoved = zebra
2022-05-31 15:37:33 +00:00
2021-07-13 01:12:06 +00:00
[commit]
gpgSign = true
2022-05-31 15:37:33 +00:00
[sequence]
2022-05-05 04:53:20 +00:00
editor = interactive-rebase-tool
2022-05-31 15:37:33 +00:00
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = false
line-numbers = true
side-by-side = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
2022-09-08 16:54:32 +00:00
[credential]
helper = store