Typo correction is useful too.
^foo^bar
git brnch
^r^ra
This works on all Unix machines
^foo^bar
git brnch
^r^ra
This works on all Unix machines
You can also just run a sed style substitution in most shells, e.g. '$ !!:s/before/after/' or '$ !!:gs/x/y/', which is safer IMO.