-
Notifications
You must be signed in to change notification settings - Fork 0
Git Clone All Remote Branches
To clone a remote git repository, enter the following into the terminal:
Note: Make sure you are in a root folder e.g.
webdevinstead of a project specific folder.
git clone <remote_repo>
cd <remote_repo>List your branches using these commands:
git branch // Lists local branches
git branch -a // Lists local and remote branchesTo checkout a remote branch locally:
If a remote branch exists with the name of the branch you checked out, it will automatically track the remote branch.
git checkout <branch>Here is an example of fetching the remote master branch from FreeCodeCamp:
git clone https://github.com/FreeCodeCamp/FreeCodeCamp.git
cd FreeCodeCamp
git checkout masterLearn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links