git checkout B1 //Switch to a branch ==> B1
git reset --soft HEAD~1 // get the changes commited to B1 back in the Local system staging area
//EDIT as you need//
git add ,
git commit -m "new changes upon chnages"
git push origin B1
add a new git commit (edited)