Answers for "github pull from main branch to local branch in command line"

11

how to pull from a particular branch in git

git pull origin <branch>
Posted by: Guest on June-30-2020
8

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		# pull master into <branch-name>
Posted by: Guest on July-23-2020

Code answers related to "github pull from main branch to local branch in command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language