Add .gitconfig

This commit is contained in:
Jan Philipp Timme 2024-01-21 12:57:38 +01:00
parent 8ec1736aa0
commit af14cd426f
1 changed files with 34 additions and 0 deletions

34
.gitconfig Normal file
View File

@ -0,0 +1,34 @@
[color]
ui = true
[user]
name = Jan Philipp Timme
email = jan.philipp@timme.it
signingkey = D66F4F7687CD68D78EA9D12D3B1C09F02E57908E
[core]
editor = vim
[push]
default = matching
[alias]
# A more condensed diff
d = diff --diff-algorithm=minimal --word-diff=color
# Sign commits with gpg
cs = commit --gpg-sign
# Usage: git signoff-rebase [base-commit]
signoff-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while git rebase --continue; do git commit --amend --signoff --no-edit; done' -"
signoff-sign-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while git rebase --continue; do git commit --amend --signoff --gpg-sign --no-edit; done' -"
sign-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while git rebase --continue; do git commit --amend --gpg-sign --no-edit; done' -"
# Various log aliases
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
le = log --oneline --decorate
logtree = log --graph --oneline --decorate --all
[branch]
autosetuprebase = remote
[url "ssh://jpt@review.typo3.org:29418"]
pushInsteadOf = git://git.typo3.org
[init]
defaultBranch = master