View Tutorial Metadata Edit Content Revision History Add New Tutorial Add to Watchlist Getting started with git

Getting started with git

Checking out a repository from the web

First, create an empty git repository in the directory you want to use:

git init

Then, say you want to import the repository from git://example.com/repository.git. In the same directory, use:

git pull git://example.com/repository.git

Now you should have a local copy of the repository on your system.

Talk icons discuss – in the article above, point your mouse over them to reply.
Can't find a relevant Talk icon for what you have to say? See how you can add one...
Note: All the talks and replies are also listed below.


Add a new discussion topic (Only if you don't find it above, duplicates will be removed)


Rating: (0+, 0-) In: Source Code Management