Two combine the first two commits of a git repository you could use:
git rebase -i --root
This command works for versions higher than git version 1.7.12
This command will open a file in that interactive rebase file makes the second commit to stash and leave the remaining to pick as shown below according to your question.
pick f4202da A
squash bea708e B
pick a8c6abc C
This will combine the two commits A and B to one commit AB.