1) Rebase the repository to 2 commits

git rebase -i $CHECKSUM_OF_FIRST_COMMIT

2) Soft Reset the last commit

git reset --soft "HEAD^"

3) Use the softly reset staging area as an --amend commit

git commit --amend -m "Squashed repo to a single commit"