zshrc: Add some git aliases
This commit is contained in:
parent
e54ac96f54
commit
33a32882ca
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue