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
Post a Comment