update master with branch code example
Example 1: git how to update branch from master
git fetch
git rebase origin/master
Example 2: update branch with master
MERGE METHOD: (keeps branch history accurate)
git checkout b1
git merge origin/master
git push origin b1
REBASE METHOD: (history will appear linear, will conflict if already pushed)
git checkout b1
git rebase master