To edit each and every edit.
$ git rebase -i --rootThen change all of the lines from pick to edit.
the rebase procedure will start.
$ git commit --amend <whatever you need to change>then to continue.
$ git rebase --continueThis 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.