简体   繁体   English

无法推送到GitLab

[英]Can't push to GitLab

I just finished setting up GitLab on my Ubuntu Server last night, but it looks like I can't push anything to it. 昨晚我刚刚在Ubuntu Server上完成了GitLab的设置,但是看来我什么都没用。 I'm extremely new to Git, so I really don't know what I'm doing here. 我对Git极为陌生,所以我真的不知道我在这里做什么。

Here's my output from SourceTree when I try to push: 这是我尝试推送时来自SourceTree的输出:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (475 bytes)

remote: GitLab: API is not accessible[K

Pushing to http://git.ghostlyco.de/revxx14/new-site.git
To http://git.ghostlyco.de/revxx14/new-site.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://git.ghostlyco.de/revxx14/new-site.git'




Completed with errors, see above.

No idea what this means. 不知道这意味着什么。 I was able to pull the thing just fine, so I'm really confused. 我能够很好地拉东西,所以我很困惑。

Here's the output when I run sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production : 这是我运行sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production时的输出sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

http://git.ghostlyco.de/snippets/1 http://git.ghostlyco.de/snippets/1

The only thing I can think of that's out of the ordinary for this install was that I couldn't run this command: echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf 对于此安装,我唯一能想到的就是与众不同之处是我无法运行此命令: echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf because the version of Redis that comes with Ubuntu 12.04 LTS x86 doesn't support unixsocketperm . echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf因为Ubuntu 12.04 LTS x86随附的Redis版本不支持unixsocketperm Not sure if that could be causing this issue. 不知道这是否可能导致此问题。


git remote -v output: git remote -v输出:

origin  http://git.ghostlyco.de/revxx14/new-site.git (fetch)
origin  http://git.ghostlyco.de/revxx14/new-site.git (push)

我想通了,我忘了在config.yml中设置gitlab_url。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM