Skip to content

Instantly share code, notes, and snippets.

@niksumeiko
Last active April 27, 2020 09:55
Show Gist options
  • Save niksumeiko/689a4bed49bcb42538def3120d1c8d96 to your computer and use it in GitHub Desktop.
Save niksumeiko/689a4bed49bcb42538def3120d1c8d96 to your computer and use it in GitHub Desktop.
Git rebase current branch onto latest master without switching · ohmyzsh custom alias
# ~/.oh-my-zsh/custom/git-rebase-master-ohmyzsh-alias.zsh
alias grbmo='gup origin master'
@niksumeiko
Copy link
Author

niksumeiko commented Dec 6, 2019

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à 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment