The first thing will be list the commits with :
git log --oneline
You must find the commit (from branch B) that you want to change from branch B to A.
git checkout A
And from there you must execute the following commit
git cherry-pick c8dc73f56eb5e548a0f9df2989d8346580ada1b7
1.- The first thing will be list the commits with :
git log --oneline
2.- You must find the commit (from branch B) and select the ID of the commit to change
3.- Change the branch
git checkout A
4.- And from there you must execute the following commit
git cherry-pick c8dc73f
Where c8dc73f56eb5e548a0f9df2989d8346580ada1b7c8dc73f
is is the number or ID of the commit that I selected in the second step.