Checking out a repository at a URL
First, create an empty git repository in the directory you want to use:
git init
Then, let's 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.