Question

Gitlab: not a git repository

  • Posted on February 6, 2015
  • kcoke666Asked by kcoke666

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!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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

Strangly it works through HTTP, but not through SSH