【问题标题】:GIT and GITLAB in Debian WheezyDebian Wheezy 中的 GIT 和 GITLAB
【发布时间】:2014-06-10 06:27:29
【问题描述】:

我是 git 和 gitlab 的新闻。我已经从官方安装中安装了它。 例如,尝试通过 sourcetree 推送一些项目,我有这个结果

`git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream    origin master:master
 Pushing to git@xxx.xxxxx.xx:/home/git/repositories/root/all.git

remote: GitLab: You are not allowed to access master![K
remote: error: hook declined to update refs/heads/master[K

到 git@xxx.xxxxx.xx:/home/git/repositories/root/all.git ! [remote denied] master -> master (hook denied)

错误:未能将一些引用推送到 'git@xxx.xxxxx.xx:/home/git/repositories/root/all.git' `

有人有想法吗?

谢谢

【问题讨论】:

  • 感谢您的回复。我已将 repos_path 更改为 /projetgitlab/,为所有用户提供所有权限,但结果相同。
  • 我的 gitlab 版本是 6-4 稳定的。我注意到我可以创建项目并导航到 gitlab 管理的 URL。
  • 使用 https url 克隆/推送会比 ssh 更好吗?或者您可以尝试将 gitlab 更新到最新版本,看看问题是否仍然存在?
  • 我正在尝试在提示符中执行此操作: mkdir aaa cd test git init touch README git add README git commit -m 'first commit' git remote add origin git@xxx.xxx.Xxx: user_dev/aaa.git git push -u origin master 结果告诉我这似乎不是一个 git 存储库。怎么了??

标签: git debian gitlab


【解决方案1】:

在我的 cmets 之后,OP Andry Vononka 做到了:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-06
    • 2014-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-18
    相关资源
    最近更新 更多