Squash all commit history to a single commit

git rebase --root -i

For each commit except the first, change pick to squash.