git pull
01 June, 2020
BackIf two people are working on the same repo, they should work on different branches other than master and merge them later.
For example:
- master
- landing-page
- inquiries-page
Alex will work on the landing-page branch, while his colleague works on the inquiries-page branch.
If Alex wants to see how inquiries-page look, he should 'pull' the branch into his local using this command:
git pull origin inquiries-page
origin
refers to the remote destination which is on Github or Gitlab.
inquiries-page
is the local branch in Alex's laptop.
And Alex can also check how each branch maps to the other in remote and local:
git remote show origin
Back