Change branch parent September 1, 2023 by Tarik You want to use rebase. With BranchB checked-out, do git rebase BranchA