如何查看Gitlab中的合并请求分支,来自Fork您没有访问权限?

发布于 2025-02-03 21:32:02 字数 1203 浏览 4 评论 0原文

我正在尝试了解合并请求,尤其是那些在Gitlab中的工作方式。

给定一个项目MAIN由用户User_main(角色:维护者)另一个用户user_other已被邀请加入(角色:开发人员)。 user_other创建一个fork fork main。存储库fork属于user_otheruser_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:

Merge request in GitLab

I would like to checkout the branch locally. For that I clicked on Check out branch and got this:

Check out branch in merge request

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

早茶月光 2025-02-10 21:32:02

您可能需要联系外部贡献者,并要求访问其叉子。

这将使您能够完成推荐的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文