What is the difference between ‘Squash and merge’, ‘Rebase and merge’, and ‘Create a merge commit’ options in a GitHub Pull Request?

Github Medium

Github — Medium

What is the difference between ‘Squash and merge’, ‘Rebase and merge’, and ‘Create a merge commit’ options in a GitHub Pull Request?

Key points

  • Merge approach affects commit history
  • Squash and merge reduces commit count
  • Rebase and merge alters commit order
  • Create a merge commit adds a link commit

Ready to go further?

Related questions