This is not made automatically. You have to manually merge your changes from A to B, which is pretty simple. Just switch to branch B and do
git merge A
Which will automatically merge your changes from A to B. As long as you don’t have any conflicts, all of the changes in A will be marked as merged in B. A common best practices is to make daily merges, but that is dependent on the number of users/commits using your branch.