diff --git a/templates/_zshrc.j2 b/templates/_zshrc.j2 index beeb708..98ddf7a 100644 --- a/templates/_zshrc.j2 +++ b/templates/_zshrc.j2 @@ -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'