浏览代码

feat(git): Add alias for rebasing to origin/main-branch (#10445)

Markus Hofbauer 2 年之前
父节点
当前提交
58478d0888
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      plugins/git/README.md
  2. 1 0
      plugins/git/git.plugin.zsh

+ 1 - 0
plugins/git/README.md

@@ -130,6 +130,7 @@ plugins=(... git)
 | grbd                 | git rebase $(git_develop_branch)                                                                                                 |
 | grbi                 | git rebase -i                                                                                                                    |
 | grbm                 | git rebase $(git_main_branch)                                                                                                    |
+| grbom                | git rebase origin/$(git_main_branch)                                                                                             |
 | grbo                 | git rebase --onto                                                                                                                |
 | grbs                 | git rebase --skip                                                                                                                |
 | grev                 | git revert                                                                                                                       |

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

@@ -251,6 +251,7 @@ alias grbc='git rebase --continue'
 alias grbd='git rebase $(git_develop_branch)'
 alias grbi='git rebase -i'
 alias grbm='git rebase $(git_main_branch)'
+alias grbom='git rebase origin/$(git_main_branch)'
 alias grbo='git rebase --onto'
 alias grbs='git rebase --skip'
 alias grev='git revert'