kcoke666
By:
kcoke666

Gitlab: not a git repository

February 6, 2015 2k 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!

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

Have another answer? Share your knowledge.