I see that in Step 5 you switch back to master to pull to your local copy of master, but how does that update your local branch without pulling master to your local branch?
I guess I still don't really understand why you would switch back to master and then back to branch. Thanks!
Valid question. Just doing git pull origin master in Step 5 will NOT update your local branch. This tutorial is missing a step between 6 and 7. Essentially after you git pull origin master in Step 5, and git checkout mybranchname in step 6, you will run git merge master to combine the master branch changes into your feature branch, named mybranchname. Hope that helps!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
that's in the steps now, edited ;-)
I see that in
Step 5
you switch back to master to pull to your local copy of master, but how does that update your local branch without pulling master to your local branch?I guess I still don't really understand why you would switch back to master and then back to branch. Thanks!
Valid question. Just doing
git pull origin master
in Step 5 will NOT update your local branch. This tutorial is missing a step between 6 and 7. Essentially after yougit pull origin master
in Step 5, andgit checkout mybranchname
in step 6, you will rungit merge master
to combine the master branch changes into your feature branch, namedmybranchname
. Hope that helps!