nixos/config/etc/gitconfig

15 lines
485 B
Text

[user]
name = derped
email = derped@ophanim.de
[alias]
get = clone --recursive
blame = -w -M
update = !git pull && git submodule update --init --recursive
comma = commit --amend
uncommit = reset --soft HEAD^
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
pru = !"pr() { git fetch upstream pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
backport = cherry-pick -x
reset-pr = reset --hard FETCH_HEAD
publish = !git pull && git push