Skip to content

Instantly share code, notes, and snippets.

@smcabrera
Created February 16, 2022 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smcabrera/5a4cab736a8ca1fe91dc3b8b595f3935 to your computer and use it in GitHub Desktop.
Save smcabrera/5a4cab736a8ca1fe91dc3b8b595f3935 to your computer and use it in GitHub Desktop.
alias remup='current_branch=$(git branch | grep \* | cut -d " " -f2) ; git checkout main ; git fetch ; git pull origin main ; git checkout $current_branch ; git merge main'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment