I'm trying to do something very simple: Clone a repository.
The documentation here: http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository isn't particularly clear on the usage of the clone command.
I assumed you would run clone within an empty directory and it would pull all the files down as a new repository. However this doesn't seem to work as I expected:
I've done this:
mkdir newrepo
cd newrepo
git clone /repo/i/want/to/clone
It doesn't work, but the message I get is confusing: "Cloning into /repo/i/want/to/clone". Does this mean it's attempting to copy files from "newrepo" into /repo/i/want/to/clone?
From this perspective, the documentation and the message the command prints are contradictory.
tl;dr: Should clone be run from the existing repo passing it the URL of the repo I want the files copied to, or should it be run from an empty directory and passed the URL of the repo I want the files copied from?