我创建了我的项目并添加了我的ssh-key(都通过webinterface),但是当我尝试将某些内容推送到repo时,我收到此错误:"无法从存储库中读取".这可能是因为.git-project-file不存在于/ home/git/repositories/[group] /文件夹中.
gitlab-check返回:
[Group] / [Project] ... can't create, repository is empty
Run Code Online (Sandbox Code Playgroud)
git remote add origin git@myserver.com: [group]/[project] .git
git push -u origin master
fatal: '/home/git/repositories/[group]/[project].git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
ls -ld /home/git/repositories/ [group]/[project].git
File not found.
Run Code Online (Sandbox Code Playgroud)
为什么文件没有创建?
ls -ld/home// home/git /
drwxr-xr-x 3 root root 4096 Aug 28 15:04 /home/
drwxr-xr-x …Run Code Online (Sandbox Code Playgroud)