zshrc: Add some git aliases

This commit is contained in:
Jannik Beyerstedt 2022-01-04 12:41:59 +01:00
parent e54ac96f54
commit 33a32882ca

View file

@ -102,3 +102,7 @@ alias rsync-synchronize="rsync -avzu --delete --progress -h"
# stolen from: https://eldritch.cafe/@lexi/103707492979358755
alias doch='sudo sh -c "$(fc -n -l -- -1)"'
# more git helpers
alias git-force-pull='git fetch && git reset --hard origin/$(git rev-parse --abbrev-ref HEAD)'
alias git-force-push='git push origin $(git rev-parse --abbrev-ref HEAD) --force-with-lease'