<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Allow collaboration on merge requests across forks > 原文:[https://docs.gitlab.com/ee/user/project/merge_requests/allow_collaboration.html](https://docs.gitlab.com/ee/user/project/merge_requests/allow_collaboration.html) * [Enabling commit edits from upstream members](#enabling-commit-edits-from-upstream-members) * [Pushing to the fork as the upstream member](#pushing-to-the-fork-as-the-upstream-member) # Allow collaboration on merge requests across forks[](#allow-collaboration-on-merge-requests-across-forks "Permalink") 在 GitLab 10.6 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17395) . 當用戶從派生打開合并請求時,將為他們提供允許上游成員在源分支上與其進行協作的選項. 這使上游項目的成員可以在合并之前進行小規模修復或重新分支,從而減少了接受外部貢獻的來回過程. 此功能可用于可公開訪問的分支項目之間的合并請求. 為合并請求啟用后,對項目目標分支具有合并訪問權限的成員將被授予對合并請求的源分支的寫權限. ## Enabling commit edits from upstream members[](#enabling-commit-edits-from-upstream-members "Permalink") 只有具有對源項目的推送訪問權限的用戶才能啟用該功能,并且只有在合并請求打開時才能持續使用. 啟用后,上游成員也將能夠重試合并請求的管道和作業: 1. 在創建或編輯合并請求時啟用貢獻. [![Enable contribution](https://img.kancloud.cn/aa/69/aa695012d73d3d568abbba1d7b4145d8_775x351.png)](img/allow_collaboration.png) 2. 創建合并請求后,您將看到允許可以合并到目標分支的成員的提交. [![Check that contribution is enabled](https://img.kancloud.cn/c4/69/c469301da76019946346743ee4d9c8f5_504x117.png)](img/allow_collaboration_after_save.png) ## Pushing to the fork as the upstream member[](#pushing-to-the-fork-as-the-upstream-member "Permalink") 如果合并請求的創建者啟用了上游成員的貢獻,則可以直接推送到派生存儲庫的分支. 假如說: * 分叉的項目 URL 為`git@gitlab.com:thedude/awesome-project.git` . * 合并請求的分支是`update-docs` . 流程如下所示: 1. 首先,您需要獲取合并請求已引入的更改. 單擊" **簽出"分支**按鈕,其中包含可以運行的一些預填充命令. [![Check out branch button](https://img.kancloud.cn/c0/2b/c02be0d51d177c2584312edbb677aca8_958x77.png)](img/checkout_button.png) 2. 使用復制按鈕復制第一個命令并將其粘貼到您的終端中: ``` git fetch git@gitlab.com:thedude/awesome-project.git update-docs git checkout -b thedude-awesome-project-update-docs FETCH_HEAD ``` 這將獲取派生項目的分支,然后基于所獲取的分支創建本地分支. 3. Make any changes you want and commit. 4. 推送到分叉的項目: ``` git push git@gitlab.com:thedude/awesome-project.git thedude-awesome-project-update-docs:update-docs ``` 注意冒號( `:`兩個分支之間). 上面的命令會將本地分支`thedude-awesome-project-update-docs` `git@gitlab.com:thedude/awesome-project.git`存儲庫的`update-docs`分支.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看