In git, I am in branch A, and I want to update branch B to be exactly equal to branch A.
In hg, this is easy. In git, the only way I can think to do it is
git branch -D B
git checkout -b B
git checkout A
Is there a better way to do this, that doesn't involve a destructive operation?
UPDATE: This appears to be the way to do it! But I'm afraid to try it lol https://chaos.social/@fogti/114722524104011210