Answers for "git how to merge remote branch to local master"

3

how to merge remote branch

//make sure you're on the local branch, then:

git pull origin YourRemoteBranch

//which is the same as:

git fetch origin YourRemoteBranch
git merge origin/YourRemoteBranch
Posted by: Guest on June-15-2020
2

git merge origin/master into branch

git checkout dmgr2      # gets you "on branch dmgr2"
git fetch origin        # gets you up to date with origin
git merge origin/master
Posted by: Guest on July-30-2020

Code answers related to "git how to merge remote branch to local master"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language