Skip to content

Instantly share code, notes, and snippets.

@holtbp
Created July 20, 2021 21:12
Show Gist options
  • Save holtbp/a5f68b741eeff5050dae276ae0535419 to your computer and use it in GitHub Desktop.
Save holtbp/a5f68b741eeff5050dae276ae0535419 to your computer and use it in GitHub Desktop.
Quick helper for rebasing branch on latest master
#!/bin/bash
git checkout master && git fetch && git rebase origin/master
git checkout - && git rebase master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment