There are many repetitive questions related to this. The following is a general solution to replace the first commit of your tree. After completing this step, you can make any other changes using git rebase -i .
Paste commit before committing root in git?
cmcginty
source share