如何绕过:远程:GitLab:作者 是不是团队中的一员?

问题描述 投票:0回答:1

我最初从另一个GitHub的项目(github上)克隆了GitLab项目(来源)。

$ git remote
github
origin

我做的这一点:

git remote add github https://the-git-hub-remote.git

现在我想GitHub的新变化合并到我的本地代码。所以我做了以下

在我的本地计算机上,我把改变从GitHub

git fetch github

我那么GitHub的master分支复制到本地分支称为github-master

git checkout -b github-master github/master

现在我想将它推到我的GitLab回购,但投诉:

$ 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 '[email protected]' 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 '[email protected]'

我该怎么办?

基本上,我有同样的问题Velmurugan Velayutham在https://gist.github.com/DavideMontersino/810ebaa170a2aa2d2cad

谢谢!

git github gitlab githooks git-remote
1个回答
2
投票

正如issue 17244所示,检查项目挂钩的配置:

Check whether author is a GitLab user
Restrict commits by author (email) to existing GitLab users

你至少可以要求停用暂时说挂钩,让你的初始推力来完成。

© www.soinside.com 2019 - 2024. All rights reserved.