I'm new to Git, and now I'm in this situation:
master
and... here is my problem:How do I update all other branches with master
branch code?
You have two options:
The first is a merge, but this creates an extra commit for the merge.
Checkout each branch:
git checkout b1
Then merge:
git merge origin/master
Then push:
git push origin b1
Alternatively, you can do a rebase:
git fetch
git rebase origin/master