I’m working on a separate branch from the master branch, and I wondering what will happen if I pull the latest changes from Github. Should I pull from the master branch or the side branch? If I pull from the side branch, will it just merge the updates with my new code in the side branch?
Share
You want to
origin/masterorigin/masterinto your localmasterbranchmasterbranch into your feature branchIf your master hasn’t changed you should:
If your local master has changed,
git pullmay cause merge conflicts that you will have to resolve. If you want to keep your history clean, you might considergit pull --rebaseand/or rebasing your feature branch onto the newly merged master once steps 1 and 2 are complete.