This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/git/config

90 lines
1.7 KiB
Plaintext

[user]
name = Daniel Flanagan
email = daniel@lyte.dev
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
editor = nvim
excludesfile = /home/daniel/.home/.gitignore
[http "https://gopkg.in"]
followRedirects = true
[diff]
tool = nvimdiff
[difftool]
prompt = false
[alias]
a = add
A = add -A
ac = commit -a
b = rev-parse --symbolic-full-name HEAD
c = commit
cm = commit -m
cnv = commit --no-verify
co = checkout
d = diff
ds = diff --staged
dt = difftool
f = fetch
l = log --pretty=format:'%h %ad%x09%an%x09%s' --date=short --decorate
graph = log --graph --abbrev-commit --decorate --oneline --all
ls = ls-files
mm = merge master
p = push
pf = push --force-with-lease
pl = pull
rim = rebase -i master
s = status
sur = submodule update --remote
[merge]
tool = nvimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[mergetool "nvimdiff"]
cmd = nvimdiff $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c '$wincmd J'
[pager]
branch = false
# remove ansi codes, pad each file's diff with newlines, show as diff, remove top padding
# diff = nvim -c 'silent %sm/\\e[^mK]*[mK]//g' \
# -c 'silent %s/^diff/\\r\\rdiff/' \
# -c 'silent set ft=diff' \
# -c 'silent execute \"normal gg2dd\"' \
# -c 'silent setlocal nobuflisted buftype=nofile bufhidden=wipe noswapfile'
[commit]
gpgsign = true
[gpg]
program = gpg2
[include]
path = $ENV_PATH/gitconfig
[include]
path = $HOME/.config/lytedev-env/divvy/gitconfig
[color]
ui = auto
[http "https://git-p1ap1.divvy.co"]
proxy = socks://localhost:9982
[url "git@git-p1ap1.divvy.co"]
proxy = https://github.com/postmates
[push]
default = current