While trying to clone an already existing repository from gitlab into my local drive. I used the format
$ git clone https://github.com/libgit2/libgit2 mylibgit
if you change your remote from using ssh to https and accidentally leave a colon in the string - you will a message like this. It's a confusing message, but it makes sense once you understand the source of the problem.