I have 2 branches (B1, B2)
B1
/
C1 - C2 - C3
\
B2
and I was changing them by turns (checkout->amend->checkout->amend->...). But after a certain time it was a mess, I have to start from the beginning. I found a certain commit in git reflog
that was OK yet. But how to restore both branches to the commits where that certain commit happened?