[英]Can't push to GitLab
昨晚我剛剛在Ubuntu Server上完成了GitLab的設置,但是看來我什么都沒用。 我對Git極為陌生,所以我真的不知道我在這里做什么。
這是我嘗試推送時來自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.
不知道這意味着什么。 我能夠很好地拉東西,所以我很困惑。
這是我運行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
對於此安裝,我唯一能想到的就是與眾不同之處是我無法運行此命令: echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
因為Ubuntu 12.04 LTS x86隨附的Redis版本不支持unixsocketperm
。 不知道這是否可能導致此問題。
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.