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
I later found the problem, I was not typing cd /path/to/your/repo at the beginning.
cd /path/to/your/repo
I was actually typing gitlab instead of Github.
gitlab
Github
Thanks.