Reprenez une branche en git

git checkout A
git reset --hard B
git push --force github
Important Ibis