[英]Forking an existing gitlab project under my user namespace with the same group name as the original repo
我如何分叉現有的 gitlab 項目,該項目位於: https://gitlab.com/organisation/custom-group/custom-project在我自己的用戶命名空間下: https://gitlab.com/my-user/custom-group /定制項目?
因為在這里https://gitlab.com/groups/new#create-group-pane不可能在我自己的命名空間中創建一個組,例如,它必須在https://gitlab.com/custom-group創建,而我想要它在https://gitlab.com/my-user/custom-group
另一方面,如果我單擊原始組織存儲庫中的 fork 按鈕,則在此階段沒有在我自己的命名空間中創建子組的選項: https://gitlab.com/organisation/custom-group/自定義項目/-/forks/new
所以這將創建https://gitlab.com/my-user/custom-project而不是https://gitlab.com/my-user/custom-group/custom-project
我當然錯過了一些非常明顯的東西,但是我已經在文檔中迷失了 2 個小時,卻沒有找到任何與解決這個“問題”相關的東西。
我不想說,你正在尋找的是不可能的。
正如您所注意到的,不可能在您的用戶名路徑“內部”創建組。 這是因為您的用戶命名空間和組命名空間的工作方式不同。
命名空間文檔明確說明了這一點:
您不能在個人命名空間中創建子組。
獲得您正在尋找的路徑的唯一方法是更改您的用戶名並使用您的“舊”用戶名創建一個組,因為命名空間路徑在個人和組命名空間中都是唯一的。 意思是,您不能使用my-user
路徑創建組來獲取gitlab.com/my-user
,因為它已被您的用戶占用。
所以如果你願意放棄my-user
作為你的用戶名,那么你會:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.