Question

Gitlab: not a git repository

Posted February 6, 2015 4.9k views

Hello,

I’m running Ubuntu 14 with Gitlab. The gitlab is working fine, besides cloning from it.

Whenever I try to access the repository using phpstorm, I get:

fatal: ‘root/WebGL.git’ does not appear to be a git repositoy
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

gitlab is proving me this link: git@*****.net:root/WebGL.git

I can login via ssh as git user, the home directory points to:

/var/opt/gitlab

The path to the repository on the VPS is

/var/opt/gitlab/git-data/repositories/root/test.git
The contents of the directory are:

config
description
HEAD
Hooks
info
objects
refs

I generated a public ssh key using PuTTYgen on my windows machine (the computer I’m trying to clone the project to) and added it to gitlabs 'ssh keys’ section.

I also saved the key to c:/Users/Me/.ssh/id_rsa.pub, but still keep getting this error.

Thanks!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Strangly it works through HTTP, but not through SSH

Have you figured this out?
If not, try using this link format:

ssh://git@*****.net:repositories/root/WebGL.git

Submit an Answer