小编Chr*_*mer的帖子

GitLab:无法从远程存储库中读取

我创建了我的项目并添加了我的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)

linux git ubuntu repository gitlab

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×1

gitlab ×1

linux ×1

repository ×1

ubuntu ×1