如何查看Gitlab中的合并请求分支,来自Fork您没有访问权限?
我正在尝试了解合并请求,尤其是那些在Gitlab中的工作方式。
给定一个项目MAIN
由用户User_main
(角色:维护者)另一个用户user_other
已被邀请加入(角色:开发人员)。 user_other
创建一个fork fork
main
。存储库fork
属于user_other
和user_main
无法访问它。
user_other
提交fork
中特定分支的更改,并提出合并请求。现在user_main
需要查看更改是否正确。
这就是我卡住的地方。在合并请求 main
的部分中,我得到了:
我想在本地查看分支。为此,我单击查看分支并得到了:
我尝试获取它,但我得到了
远程:您正在寻找的项目找不到,或者您无权查看它。 致命:存储库'https://xxxx/user_other/fork.git'找不到
,确实是因为我不是fork
的成员,所以我什至看不到存储库。
我将如何处理?我知道合并请求实际上不是 git 的一部分,而是在以后的阶段介绍(我认为是GitHub),所以我认为也许我只能通过Web UI完成合并请求(或者也许是Gitlab API,我现在不想处理)。
I'm trying to learn about merge requests and in particular how those work in GitLab.
Given a project MAIN
by user USER_MAIN
(role: Maintainer) another user USER_OTHER
has been invited to join (role: Developer). USER_OTHER
creates a fork FORK
of MAIN
. The repository FORK
belongs to USER_OTHER
and USER_MAIN
has no access to it.
USER_OTHER
commits changes to a specific branch in FORK
and makes a merge request. Now USER_MAIN
needs to see if the changes are correct.
And here is where I'm stuck. In the Merge request section of MAIN
I get this:
I would like to checkout the branch locally. For that I clicked on Check out branch and got this:
I tried fetching it but I get
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://XXXX/USER_OTHER/FORK.git' not found
And indeed since I'm not a member of FORK
I cannot even see the repository.
How would I deal with this? I know that merge requests are not actually part of git but were rather introduced at a later stage (I think by GitHub) so I'm thinking perhaps I can complete the merge request only via the Web UI (or perhaps the GitLab API, which I don't want to deal with right now).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要联系外部贡献者,并要求访问其叉子。
这将使您能够完成推荐的GitLab步骤。
You might need to contact your external contributor, and request access to their fork.
That would allow you to complete the recommended GitLab steps.