To edit each and every edit.
$ git rebase -i --root
Then change all of the lines from
the rebase procedure will start.
$ git commit --amend <whatever you need to change>
then to continue.
$ git rebase --continue
This will iterate over all of the commits in the repository.
Once you have edited all of the commits, you will see the output like the following.
$ git rebase --continue Successfully rebased and updated refs/heads/master.
Congrats, at this point; you have edited all of the commits in the repository.