大佬教程收集整理的这篇文章主要介绍了linux – GitLab:无法从远程存储库读取,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
gitlab-check返回:
[Group] / [Project] ... can't create,repository is empty
推送到存储库时出错
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.
可能导致错误的原因
ls -ld /home/git/repositories/ [group]/[project].git
File not found.
为什么文件没有创建?
关于我的设置的信息
ls -ld / home / / home / git /
drwxr-xr-x 3 root root 4096 Aug 28 15:04 /home/ drwxr-xr-x 8 git git 4096 Aug 31 11:33 /home/git/
ll / home / git
drwxr-xr-x 8 git git 4096 Aug 31 11:33 ./ drwxr-xr-x 3 root root 4096 Aug 28 15:04 ../ -rw-r--r-- 1 git git 220 Aug 28 15:04 .bash_logout -rw-r--r-- 1 git git 3637 Aug 28 15:04 .bashrc drwx------ 2 git git 4096 Aug 29 19:52 .cache/ -rw-r--r-- 1 git git 88 Aug 31 11:33 .gitconfig drwxr-xr-x 16 git git 4096 Aug 29 15:32 gitlab/ drwxr-xr-x 2 git git 4096 Aug 28 15:09 gitlab-satellites/ drwxr-xr-x 8 git git 4096 Aug 29 19:51 gitlab-sHell/ -rw------- 1 git git 13 Aug 29 15:36 .MysqL_history -rw-r--r-- 1 git git 675 Aug 28 15:04 .profile drwxrws--- 5 git git 4096 Aug 29 16:15 repositories/ drwx------ 2 git git 4096 Aug 31 11:47 .ssh/ -rw------- 1 git git 3453 Aug 29 16:03 .viminfo
sudo -u git -H bundle exec rake gitlab:env:info
RAILS_ENV=production System information System: Ubuntu 13.04 Current User: git Using RVM: no Ruby Version: 2.0.0p247 Gem Version: 2.0.3 Bundler Version:1.3.5 Rake Version: 10.1.0 GitLab information Version: 6.0.0 Revision: 6c1c284 Directory: /home/git/gitlab DB Adapter: MysqL2 URL: http://myserver.com http Clone URL: http://myserver.com/some-project.git SSH Clone URL: git@myserver.com:some-project.git Using LDAP: no Using Omniauth: no GitLab SHell Version: 1.7.0 Repositories: /home/git/repositories/ Hooks: /home/git/gitlab-sHell/hooks/ Git: /usr/bin/git
sudo -u git -H bundle exec rake gitlab:check
RAILS_ENV=production checking Environment ... Git configured for git user? ... yes Has python2? ... yes python2 is supported version? ... yes checking Environment ... Finished checking GitLab SHell ... GitLab SHell version >= 1.7.0 ? ... OK (1.7.0) Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by git:git? ... yes Repo base access is drwxrws---? ... yes post-receive hook up-to-date? ... yes post-receive hooks in repos are links: ... [Group] / [Project] ... repository is empty checking GitLab SHell ... Finished checking Sidekiq ... Running? ... yes checking Sidekiq ... Finished checking GitLab ... Database config exists? ... yes Database is sqlite ... no All migrations up? ... yes GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Init script exists? ... yes Init script up-to-date? ... yes Projects have satellites? ... [Group] / [Project] ... can't create,repository is empty redis version >= 2.0.0? ... yes Your git bin path is "/usr/bin/git" Git version >= 1.7.10 ? ... yes (1.8.1) checking GitLab ... Finished
ssh -T git@myserver.com
Welcome to GitLab,Christian HAMMer!
cat /home/git/.ssh/authorized_keys
command="/home/git/gitlab-sHell/bin/gitlab-sHell key-2",no-port-forWARDing,no-X11-forWARDing,no-agent-forWARDing,no-pty ssh-rsa [key] [email]
以上是大佬教程为你收集整理的linux – GitLab:无法从远程存储库读取全部内容,希望文章能够帮你解决linux – GitLab:无法从远程存储库读取所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。