nixos/config/etc/gitconfig

16 lines
485 B
Text
Raw Normal View History

2019-02-26 13:44:40 +01:00
[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