Last active
April 27, 2020 09:55
-
-
Save niksumeiko/689a4bed49bcb42538def3120d1c8d96 to your computer and use it in GitHub Desktop.
Git rebase current branch onto latest master without switching · ohmyzsh custom alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.oh-my-zsh/custom/git-rebase-master-ohmyzsh-alias.zsh | |
alias grbmo='gup origin master' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use/like CLI (Terminal), are a fan of oh-my-zsh, and oftentimes use
grbm
alias to rebase local outdated master into your current branch, this alias will rebase your branch into the latest (not local) master without switching in between branches.Executing
grbmo
alias will pull latest code into the local master branch and rebase your branch onto fresh master.Voilà 😊