GIT and GITLAB in Debian Wheezy



我是git和gitlab的新闻。我已经从官方安装安装了它。例如,尝试通过源代码树推送一些项目,我得到这个结果

`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存储库/根/all.git! [远程拒绝]master -> master(钩子拒绝)

错误:push refs failed to 'git@xxx.xxxxx.xx:/home/git/repositories/root/all.git' '

有人有主意吗?

谢谢

在我的评论之后,OP Andry Vononka说:

  • 生成ssh密钥(使用ssh-keygen)
  • 将公钥添加到GitLab帐户设置中(如图所示,并在此视频中从GitLab屏幕录制)
  • 确保他是他推送到的回购的所有者。

最新更新