Answers for "how to update my local branch with remote master"

12

git replace local branch with remote

git reset --hard origin/master
Posted by: Guest on November-22-2019
0

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
Posted by: Guest on January-09-2021

Code answers related to "how to update my local branch with remote master"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language