github - Git: Pulling and merging branch into Master -


so far have used git individually , first time using team. facing issue: there master repo contains 2 branches; dev1 , dev2. have been assigned review code of dev1 , merge master.

now in order view code or running want set branch on local machine. how pull of branch data first time have folders on machine , how later pull changes branch.

later how merge branch dev1 master?

thanks

if not have clone of remote repo:

git clone <remote repo url github> cd <repo> 

fetch remote branches remote repo:

git fetch origin 

checkout remote branch 'dev1':

git checkout dev1 

review , run code see fit.

if have privileges (on github) push 'origin:master' should able merge 'master' 'dev1' , push updated 'master':

git checkout master git merge dev1 git push origin master 

if not have privileges update remote 'origin:master' can issue pull-request (on github).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -