Browse Source

feat(plugins): add gpr alias for /git pull -rebase/ which is easier to remember (#9964)

Daniel Wu 2 years ago
parent
commit
9bdbe08aa2
2 changed files with 2 additions and 0 deletions
  1. 1 0
      plugins/git/README.md
  2. 1 0
      plugins/git/git.plugin.zsh

+ 1 - 0
plugins/git/README.md

@@ -116,6 +116,7 @@ plugins=(... git)
 | gpf                  | git push --force-with-lease                                                                                                      |
 | gpf!                 | git push --force                                                                                                                 |
 | gpoat                | git push origin --all && git push origin --tags                                                                                  |
+| gpr                  | git pull --rebase                                                                                                                |
 | gpu                  | git push upstream                                                                                                                |
 | gpv                  | git push -v                                                                                                                      |
 | gr                   | git remote                                                                                                                       |

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

@@ -215,6 +215,7 @@ 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 gpr='git pull --rebase'
 alias gpu='git push upstream'
 alias gpv='git push -v'