Commonly used git rebase --interactive HEAD~nwhere n is not. of which you want to merge into one. However, in your case, you want to dump the whole story into a single commit, and since rebooting without a parent (before the initial commit) is impossible, we must use git resetand git commit --amend.
Here is what you do:
git log --oneline. SHA .- , SHA
fe7d5d1. git reset fe7d5d1. reset . git add ., .- inital commit,
git commit --amend -m "Initial commit". - ,
git log --oneline.
. //, .