Loading lesson path
Now continue working on our new branch in our local Git.
Formula
Lets pull from our repository again so that our code is up - to - date:Example git pull remote: Enumerating objects: 5, done.
Formula
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0), pack - reused 0
Unpacking objects: 100% (3/3), 851 bytes | 9.00 KiB/s, done.
From https://.com/w3schools - test/hello - world
* [new branch] html - skeleton -> origin/html - skeletonAlready up to date. Now our main branch is up todate. And we can see that there is a new branch available on .
Formula
Your branch is up to date with 'origin/master'.nothing to commit, working tree clean And confirm which branches we have, and where we are working at the moment:
Example git branch -a
Formula
* master remotes/origin/html - skeleton remotes/origin/masterFormula
branch - r is for remote branches only.
We see that the branch html - skeleton is available remotely, but not on our local git. Lets check it out:Formula
Branch 'html - skeleton' set up to track remote branch 'html - skeleton' from 'origin'.And check if it is all up to date:
Already up to date. Which branches do we have now, and where are we working from?
Formula
* html - skeleton masterNow, open your favourite editor and confirm that the changes from the branch carried over. That is how you pull a branch to your local Git.