Browse Source

git: add push force aliases (#6297)

* gpf to --force-with-lease
* gpf! to --force
Yago Nobre 6 years ago
parent
commit
0db7da0cd5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/git/git.plugin.zsh

+ 2 - 0
plugins/git/git.plugin.zsh

@@ -202,6 +202,8 @@ alias gma='git merge --abort'
 
 
 alias gp='git push'
 alias gp='git push'
 alias gpd='git push --dry-run'
 alias gpd='git push --dry-run'
+alias gpf='git push --force-with-lease'
+alias gpf!='git push --force'
 alias gpoat='git push origin --all && git push origin --tags'
 alias gpoat='git push origin --all && git push origin --tags'
 compdef _git gpoat=git-push
 compdef _git gpoat=git-push
 alias gpu='git push upstream'
 alias gpu='git push upstream'