首页 文章

gitlab 6.0:致命:'/home/git/repositories/alex/test.git'似乎不是一个致命的git存储库:远程端意外挂断

提问于
浏览
1

以下是我的配置:

config / gitlab.yml gitlab:host:192.168.5.165 port:8001

配置/ database.yml的

用户名:gitlab密码:“xxxxx”

gitlab - 壳/ config.yml:

gitlab_url: "http://192.168.5.165:8001/"

在/ etc / nginx的/网站可用/ gitlab:

听192.168.5.165:800; server_name 192.168.5.165;

当我创建一个新项目,并从命令推送,我得到错误:

alex @ ubuntu:〜/ gitlabProjects / test $ git remote add origin git@192.168.5.165:alex / test.git alex @ ubuntu:〜/ gitlabProjects / test $ git push -u origin master fatal:'/ home / git / repositories / alex / test.git'似乎不是一个致命的git存储库:远程端意外挂断

然后我尝试了另一种方式,我得到了错误:

alex @ ubuntu:〜/ gitlabProjects / test $ git remote add test git@192.168.5.165:8001:alex / test.git alex @ ubuntu:〜/ gitlabProjects / test $ git push -u test master访问被拒绝 .

我确信我的公钥是可以的 . 我真的无法解决这个问题 .

/ home / git / gitlab $ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV = production Checking Environment ...为git用户配置Git? ...是的有python2吗? ...是的python2是支持的版本? ...是检查环境...完成检查GitLab Shell ... GitLab Shell版本> = 1.7.0? ... OK(1.7.0)Repo基目录存在吗? ...是的Repo基目录是一个符号链接? ...没有由git拥有的Repo基础:git? ...是的回购基础访问是drwxrws ---? ...是收件后最新消息? ...是回购中的post-receive hooks链接:... alex / write-clean-code ... ok alex / HelloGitlab ... ok alex / Test ... ok检查GitLab Shell ...完成检查Sidekiq ......跑步? ...是检查Sidekiq ...完成检查GitLab ...数据库配置是否存在? ...是数据库是SQLite ...没有所有迁移? ...是的GitLab配置存在吗? ...是的GitLab配置过时了吗? ...没有Log目录可写? ...是的Tmp目录是否可写? ...是的初始脚本存在吗? ...是的Init脚本是最新的吗? ...是项目有卫星? ... alex / write-clean-code ... yes alex / HelloGitlab ... yes alex / Test ... yes Redis version> = 2.0.0? ...是的你的git bin路径是“/ usr / bin / git”Git版本> = 1.7.10? ...是(1.8.4)检查GitLab ...已完成

1 回答

  • 0

    我相信这就是你想要用 Github 存储库...

    • 首先通过取消提交先前的更改来执行清理

    • 要将当前 HEAD 重置为指定状态,可以使用以下命令,试试这个

    git reset --hard origin/master

相关问题