I can't think of a quick way to do this. Here is one way. It works no matter how far backward the commit occurs, but note that it rebasewill use any merges along the way. *
git checkout 447a1cb
<edit stuff>
git commit --amend
git checkout -
git rebase --onto @{-1} 447a1cb
, 447a1cb ; , , , HEAD^, .
:
- , ( : " HEAD", , , , , 5).
- ,
- , , .. ,
- (4),
HEAD^ ( , .. ) . --onto , .
man git -rebase.
, .
*
, , , --preserve-merges git rebase ( BUGS man git -rebase), git replace --edit git filter-branch. man git -replace man git -filter .