I have to branches, A and B:
1-2-3
^ ^
A B
Say I want to amend commit 2, so I checkout branch A and do git commit --amend
.
Now my graph looks like this:
1--2' [A]
\-2-3 [B]
Is there a way to also automatically update branch B (in case there are no conflicts) so that my graph looks like
1-2'-3
^ ^
A B
I know that I can do git checkout B && git rebase A
and use git rebase --skip
, but is there a quicker way?