如何绕过:远程:GitLab:作者< non-member-email-here>还不是团队成员吗? [英] How to bypass: remote: GitLab: Author <non-member-email-here> is not a member of team?
问题描述
我有一个GitLab项目(起源),该项目最初是从另一个GitHub项目(github)克隆的.
I have a GitLab project (origin) that was originally cloned from another GitHub project (github).
$ git remote
github
origin
我通过以下方式实现了这一目标:
I made this happen by:
git remote add github https://the-git-hub-remote.git
现在,我想将GitHub的新更改合并到我的本地代码中.所以我做了以下
Now I want to merge GitHub's new changes into my local code. so I did the following
在我的本地计算机上,我从GitHub提取了更改
In my local computer, I pulled changes from GitHub
git fetch github
然后我将GitHub的master
分支复制到名为github-master
I then copy the GitHub's master
branch into a local branch called github-master
git checkout -b github-master github/master
现在我想将其推送到我的GitLab存储库中,但它抱怨:
Now I want to push it to my GitLab repo but it complains:
$ git push origin
Enumerating objects: 6813, done.
Counting objects: 100% (6083/6083), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1842/1842), done.
Writing objects: 100% (5721/5721), 2.09 MiB | 42.05 MiB/s, done.
Total 5721 (delta 4008), reused 5313 (delta 3735)
remote: Resolving deltas: 100% (4008/4008), completed with 224 local objects.
remote: GitLab: Author 'brian.riley@ucop.edu' is not a member of team
To my-git-lab-remote.git
! [remote rejected] github-master -> github-master (pre-receive hook declined)
error: failed to push some refs to 'git@my-git-lab-remote.git'
我该怎么办?
基本上,我在 https://gist.github.com/中遇到了与Velmurugan Velayutham相同的问题DavideMontersino/810ebaa170a2aa2d2cad
谢谢!
推荐答案
如 issue 17244 ,检查项目挂钩的配置:
As illustrated in issue 17244, check the configuration of the project hook:
Check whether author is a GitLab user
Restrict commits by author (email) to existing GitLab users
您至少可以要求暂时停用所说的挂钩,以使您的初始推动完成.
You could at least ask to desactivate temporarily said hook, to allow your initial push to complete.
这篇关于如何绕过:远程:GitLab:作者< non-member-email-here>还不是团队成员吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!