I have this linear series of commits:
A, B, C, D, E, F, G
^
HEAD
A couple of files in commit D have errors, which need to be fixed in commit D and all following commits (E, F, and G). This is a private repository, so I can just overwrite everything.
Almost all of my Git experience is
git add --all :/
git commit -m 'Commit msg'
git push -u origin branchname
This question
discusses rebasing, but that seems to be related to merging two branches. I'm hesitant to experiment, for fear of permanently damaging the repository. Perhaps that implies I should be branching and then merging...
What is the proper way of going about this?