Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Last active June 4, 2018 09:49
Show Gist options
  • Save eyalgo/ac14383b08e8df4f04fe526d05aae289 to your computer and use it in GitHub Desktop.
Save eyalgo/ac14383b08e8df4f04fe526d05aae289 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Go to relevant branch
git checkout $1
# fetch everything
git fetch
#rebase interactive
git rebase -i origin/master
# See https://git-scm.com/docs/git-rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment