Squash-merging PRs from forks This example uses PR #2. Replaces all instances of 2 with the ID you're looking to merge (using squash). git checkout master git fetch origin pull/2/head:2 git merge --squash 2 git commit git push