9bdbe08aa2c2ba4106f17082a9ee303b51167ba1

Author
Daniel Wu <daniel.y.woo@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/plugins/git/README.md b/plugins/git/README.md
 2index 4f051db8dba3ca63619da937d052b5ec1695220f..93c9cc915b7599f35b315285287290b4918b36fb 100644
 3--- a/plugins/git/README.md
 4+++ b/plugins/git/README.md
 5@@ -116,6 +116,7 @@ plugins=(... git)
 6 | gpf                  | git push --force-with-lease                                                                                                      |
 7 | gpf!                 | git push --force                                                                                                                 |
 8 | gpoat                | git push origin --all && git push origin --tags                                                                                  |
 9+| gpr                  | git pull --rebase                                                                                                                |
10 | gpu                  | git push upstream                                                                                                                |
11 | gpv                  | git push -v                                                                                                                      |
12 | gr                   | git remote                                                                                                                       |
13diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
14index 35ebfbfa35d6fc7f5736f6a88706adb7659e60ef..a364b6162b09069c1a3590a53d2a0fb2bbe684ee 100644
15--- a/plugins/git/git.plugin.zsh
16+++ b/plugins/git/git.plugin.zsh
17@@ -215,6 +215,7 @@ alias gpd='git push --dry-run'
18 alias gpf='git push --force-with-lease'
19 alias gpf!='git push --force'
20 alias gpoat='git push origin --all && git push origin --tags'
21+alias gpr='git pull --rebase'
22 alias gpu='git push upstream'
23 alias gpv='git push -v'
24