dotconfig/dot_config/git/config

81 lines
1.4 KiB
Text

[user]
email = fanyx@posteo.net
name = Hendrik Boll
signingkey = ~/.ssh/id_ed25519.pub
[includeIf "gitdir:~/b1/"]
path = ~/b1/.config/git/config
[includeIf "gitdir:~/b1/customer/sap/"]
path = ~/b1/customer/sap/.config/git/config
[gpg]
format = ssh
[gpg.ssh]
allowedSignersFile = ~/.config/git/allowed_signers
[alias]
root = rev-parse --show-toplevel
current-branch = symbolic-ref --short HEAD
b = branch
bb = switch
bc = switch -c
bcf = bc -f
bx = branch -d
bxf = bx -f
br = branch -m
brx = br -f
mm = merge
r = rebase
ri = rebase -i
rp = rebase @{upstream}
s = status -sb
ss = s -uno
si = "!hx $(git root)/.gitignore"
pp = pull
pe = """!git_remote=$(git remote | fzf); \
git_branch=$(git current-branch); \
[ -z $git_remote ] && echo 'No remote selected.' && exit 1; \
git pull $git_remote $git_branch"""
a = add
c = commit
cm = commit -m
co = checkout
d = diff
l = log -n20 --graph --color --decorate --oneline
ll = log --all --graph --color --decorate
fixup = """!git_commit=$(git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7); \
git commit --fixup $git_commit"""
pru = !git pull -r --autostash $(git rev-parse --abbrev-ref @{upstream} | tr '/' ' ')
ui = !lazygit
[branch]
sort = -committerdate
[color]
diff = auto
[column]
ui = auto
[commit]
gpgsign = true
[credential]
helper = store
[rebase]
autosquash = true
[tag]
gpgsign = true