040aadf7c460112386d23786d8d3f5d2dcfbfeb4

Author
John Delgado <pexison@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(git): add `grbo` alias for `git rebase --onto` (#8088)

Diff

 1diff --git a/plugins/git/README.md b/plugins/git/README.md
 2index 0293862679536bd3d0d76e7f223611623e950cf8..6ad19543ebbd934fe8a1a91fa163c907dc53cd28 100644
 3--- a/plugins/git/README.md
 4+++ b/plugins/git/README.md
 5@@ -124,6 +124,7 @@ plugins=(... git)
 6 | grbd                 | git rebase develop                                                                                                               |
 7 | grbi                 | git rebase -i                                                                                                                    |
 8 | grbm                 | git rebase $(git_main_branch)                                                                                                                  |
 9+| grbo                 | git rebase --onto                                                                                                             |
10 | grbs                 | git rebase --skip                                                                                                                |
11 | grev                 | git revert                                                                                                                       |
12 | grh                  | git reset                                                                                                                        |
13diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
14index 2f97dbc9273fcaeb0f9b6abcd5fac4f0105b8a32..8167980fa7bfaedb61bcd14564ddb5e0ebc1740a 100644
15--- a/plugins/git/git.plugin.zsh
16+++ b/plugins/git/git.plugin.zsh
17@@ -224,6 +224,7 @@ alias grbc='git rebase --continue'
18 alias grbd='git rebase develop'
19 alias grbi='git rebase -i'
20 alias grbm='git rebase $(git_main_branch)'
21+alias grbo='git rebase --onto'
22 alias grbs='git rebase --skip'
23 alias grev='git revert'
24 alias grh='git reset'