gitgithubclonegerritgitblit

not valid: is this a git repository?


My question is NOT this question.
On performing a git clone I am getting this error. Command than I am using is:

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

On simply running:

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

I get the error:

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

I think I need to put the full URL along with r and h parameters. Because these parameters specify the name of my repository.

I was doing a mistake (copying and pasting the URL). However, even on using the URL:

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

I am getting error:

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

How to copy correct URL from gitblit summary page?


Solution

  • Got the problem. I was using the wrong git repository altogether. Correct URL must be:

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