Create a project on GitLab5.2 today, create a project directory on the development machine by referring to the website wizard, and finally run
Git push-u origin master
Error:
Git push-u origin master
Fatal: '/home/git/repositories/cloudengine/wtunnel. git' does not appear to be a git repository
Fatal: cocould not read from remote repository.
Please make sure you have the correct access rights
And the repository exists.
Check whether the permission is correct. Finally, the solution is found. The content of the/home/git/. ssh/authorized_keys file on the GitLab server is inconsistent with the key saved on the GitLab website.
The solution is to log on to the gitlab server as the root user, go to the/home/git/gitlab directory, and run the following command:
Rake gitlab: shell: setup RAILS_ENV = production
It will prompt you to delete the original authorized_keys file and generate it again.
Then modify the. ssh user and the group owner:
Chown-R git/home/git/. ssh
Chgrp-R git/home/git/. ssh
Then restart gitlab. Try again later.
Working properly.
GitLab details: click here
GitLab: click here