I have a local branch, not merged or pushed to github. I made successive changes to the branch with non-overlapping commit items.
Branch->HEAD: File 3
Branch->HEAD~1: File 2
Branch->HEAD~2: File 1
I found an issue in File 1 and edited it. Can I somehow use
git commit --amend to change HEAD~2 without upsetting the two later commits? I don’t want to have a new small HEAD commit. Some version of
git checkout or
git rebase perhaps?
Since this is only a local branch, not pushed, I don’t care about the commit history being changed.