无效:这是 git 存储库吗?

not valid: is this a git repository?

我的问题不是 this 问题。
在执行 git clone 时出现此错误。命令比我使用的是:

$ git clone "https://gdt.test.com/gitblit/log/?r=mytest.git&h=refs/heads/branch_development"

简单地 运行:

$ git clone "https://gdt.test.com/gitblit/log/?r=mytest.git"

我收到错误:

fatal: could not create work tree dir '?r=mytest'.: Invalid argument

我想我需要将完整的 URL 与 r 和 h 参数一起放入。因为这些参数指定了我的存储库的名称。

我做错了(复制粘贴URL)。但是,即使使用 URL:

gdt.test.com/gitblit/r/mytest.git/

我收到错误:

'fatal: repository 'gdt.test.com/gitblit/r/mytest.git/'; not found. 

如何从 gitblit 摘要页面复制正确的 URL?

url 不是 git 存储库的路径但是 mytest.git 是一个裸存储库

编辑:试试这个,它对我有效

git clone https://gdt.test.com/gitblit/log/mytest.git

git clone "https://gdt.test.com/gitblit/log/mytest.git"
Cloning into 'mytest'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

问题:您正在复制和粘贴日志网页 URL 并期望能够从生成的 html.

克隆存储库

建议的成功答案已充分清除了 URL,这对您隐藏了解决方案:您缺少 URL、/r/ 或 [=11= 中的存储库服务路径].

使用您的 URL 示例,正确的语法应该是:

git clone https://gdt.test.com/gitblit/r/mytest.git

“摘要”页面为生成的 URL 提供了复制和粘贴功能,以避免此类错误。

找到问题了。我完全使用了错误的 git 存储库。正确的 URL 必须是:

git clone https://qualtar.demix@gdt.test.com/gerrit/mytest