git checkout B
git merge A
git merge --squash A
-it merges and squash all commits into one new commit
Last updated 3 years ago