Answers for "pull from local master to branch"

9

git pull master into branch

git checkout <branch-name>  # gets you on <branch-name>
git fetch origin        	# gets you up to date with origin
git merge origin/master		# merge master into <branch-name>
Posted by: Guest on July-23-2020
0

pull from master to local

git checkout my_branch    # move on your branch (make sure it exists)
git fetch origin          # fetch all changes
git pull origin master    # pull changes from the origin remote, master branch and merge them into my_branch
git push origin my_branch # push my_branch
Posted by: Guest on March-01-2022

Code answers related to "pull from local master to branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language