How to rebase with Git

Posted written by Paul Seal on May 02, 2024 Git

This post is just a place for me to put the steps for me or someone else to follow when doing a rebase using git.

  • commit your changes to your branch first
  • git push
  • git fetch
  • git checkout dev (or whatever the branch is that you want to get the changes from)
  • git pull
  • git checkout yourbranchname
  • git rebase dev
  • Then delete your remote branch from GitHub or DevOps or wherever (this will prevent a merge when you push)
  • git push