Interview Prep/Git & GitHub/Merge, rebase and cherry-pick

What is `git merge --squash` and how is it different from a squash on GitHub?

IntermediateConceptMerge, rebase and cherry-pick
Answer

It stages the combined changes from the branch but does not create a commit or record a merge parent. You commit it yourself. GitHub's squash merge does the same server-side and uses the PR title and description as the message.

git merge --squash feature && git commit
All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick