使用A分支覆盖B分支,可以执行以下操作:
bash
git checkout B
git reset --hard origin/dev
git push -fgit checkout B
git reset --hard origin/dev
git push -f或者
bash
git push origin A:B -fgit push origin A:B -f