git - Merging the latest copy of the master into another branch -


i new git , started working on new branch. want make sure have latest copy of master on computer i.e changes others made in master, has merged test branch. tried git pull origin master updates master branch, how ensure test branch updated? want make sure changes made don't accidentally merge master unless want to.

first have switch master branch, so

git checkout master 

now perform git pull origin master

once master branch updated can switch test branch , merge

git checkout testbranch git merge master 

this update branch latest master.

hopefully helps!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -