Skip to content

Instantly share code, notes, and snippets.

@tangoabcdelta
Created January 12, 2021 17:07
Show Gist options
  • Save tangoabcdelta/b17f3d1c2f2eead6f9bd1c3025de96e8 to your computer and use it in GitHub Desktop.
Save tangoabcdelta/b17f3d1c2f2eead6f9bd1c3025de96e8 to your computer and use it in GitHub Desktop.
How to do Interactive Rebase, how to do squash-and-merge
How to do Interactive Rebase, how to do squash-and-merge
  • Rebase Interactive or Squash your commits are the same thing
  • Squash and Merge is different (we will discuss that in another file)
git rebase -i HEAD~2
  • If you encounter a conflict, then, resolve it
  • Add the conflict-free files by doing the following:
git add .
git rebase --continue
  • If it prompts you that no files were detected then, instead of --continue, use --skip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment