Cloning a remote git repository
If you intend to access someone else's project, either to contribute new code or just to use the project, you'll need to clone the code to your system.
You need to be online to clone a repository. Once you've copied the files to your system, you can commit new code, backtrack to older revisions, and so on. You can't send any new code changes upstream to the site you cloned from until you are online again.
How to do it...
The git clone
command copies files from the remote site to your local system. The remote site might be an anonymous repository such as GitHub, or a system where you need to log in with an account name and perhaps password.
Clone from a known remote site such as GitHub:
$ git clone http://github.com/ProjectName
Clone from a login/password protected site (perhaps your own server):
$ git clone [email protected]:gitTest [email protected]'s password: