Git - local branches , update from remote -
i've setup git environment (mo github) have
- remote: 1 branch
- local: master branch , featurex branch work on it/
now, on remote teammate pushed on remote feature on remote want on feature branch.
which right steps that?
the concept of remote , local branches can little bit confusing in beginning. if want keep local branch "master" in sync remote branch git pull suggested in answer here way of doing so. there way of keeping remote branch while still working on featurex branch without leaving branch: merge friends changes directly remote branch.
git fetch git merge origin/master
Comments
Post a Comment