git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone command

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Jun 20, 2012, 20:49 UTC
Message-ID
<4FE2375D.5010409@gmail.com>
In-Reply-To
<4FD82090.8010509@gmail.com>
On 6/13/2012 12:09 AM, Paa Kojo Konduah Amos wrote:
Show 11 quoted lines
> hello, i have been working with git for some time now... and i have just
> been hit with a serious problem in the middle of a major deployment of
> our project.
>
> Problem: when i do a "git clone" on the server url without specifying
> the actual git repository..the command still pulls files of a previous
> clone rather than warning me the repository does not exist.
>
> PLEASE what might be wrong...is there something like clean some
> cache.... i am really hot now!!!
>
git-clone manpage states:

<directory> The name of a new directory to clone into. The "humanish" part of the source repository is used if no directory is explicitly given (repo for /path/to/repo.git and foo for host.xz:foo/.git). Cloning into an existing directory is only allowed if the directory is empty.

I assume you're ending up with a new dir/worktree named after the humanish part of the repo-name in your url? mystery solved?

v/r, neal

Previous: Paa Kojo Konduah Amos
Message 2 of 2 in “git clone command”
  1. Paa Kojo Konduah AmosJun 13, 2012
  2. Neal KreitzingerJun 20, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.