Skip to content

Instantly share code, notes, and snippets.

@bhuvidya
Last active August 9, 2018 04:29
Show Gist options
  • Save bhuvidya/cec47df67ae53fe53ebc0371d9e31af2 to your computer and use it in GitHub Desktop.
Save bhuvidya/cec47df67ae53fe53ebc0371d9e31af2 to your computer and use it in GitHub Desktop.
Manual rebasing of a feature branch, including update of origin.

Checkout the feature branch that needs rebasing:

$ git checkout feature/blah

Then rebase onto develop:

$ git rebase develop

Then force upstream feature branch to match local one:

$ git checkout develop
$ git push --force -u origin feature/blah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment