Merge B into A replacing A by Giles Bradshaw 2020-08-03 git checkout A git merge --ff-only $(git commit-tree -m "Throw away branch 'A'" -p A -p B B^{tree})