<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之旅 廣告
                # Import API > 原文:[https://docs.gitlab.com/ee/api/import.html](https://docs.gitlab.com/ee/api/import.html) * [Import repository from GitHub](#import-repository-from-github) * [Import repository from Bitbucket Server](#import-repository-from-bitbucket-server) # Import API[](#import-api "Permalink") ## Import repository from GitHub[](#import-repository-from-github "Permalink") 通過 API 將項目從 GitHub 導入到 GitLab. ``` POST /import/github ``` | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `personal_access_token` | string | yes | GitHub 個人訪問令牌 | | `repo_id` | integer | yes | GitHub 存儲庫 ID | | `new_name` | string | no | 新存儲庫名稱 | | `target_namespace` | string | yes | 要將存儲庫導入的命名空間 | ``` curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "personal_access_token=abc123&repo_id=12345&target_namespace=root" "https://gitlab.example.com/api/v4/import/github" ``` 響應示例: ``` { "id": 27, "name": "my-repo", "full_path": "/root/my-repo", "full_name": "Administrator / my-repo" } ``` ## Import repository from Bitbucket Server[](#import-repository-from-bitbucket-server "Permalink") 通過 API 將項目從 Bitbucket Server 導入到 GitLab. **注意:** Bitbucket 項目密鑰僅用于在 Bitbucket 中查找存儲庫. 如果要將存儲庫導入到 GitLab 組,則必須指定`target_namespace` . 如果您未指定`target_namespace` ,則項目將導入您的個人用戶名稱空間. ``` POST /import/bitbucket_server ``` | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `bitbucket_server_url` | string | yes | Bitbucket 服務器網址 | | `bitbucket_server_username` | string | yes | Bitbucket 服務器用戶名 | | `personal_access_token` | string | yes | Bitbucket 服務器個人訪問令牌/密碼 | | `bitbucket_server_project` | string | yes | Bitbucket 項目密鑰 | | `bitbucket_server_repo` | string | yes | Bitbucket 存儲庫名稱 | | `new_name` | string | no | 新的回購名稱 | | `target_namespace` | string | no | 導入倉庫的命名空間 | ``` curl --request POST \ --url https://gitlab.example.com/api/v4/import/bitbucket_server \ --header "content-type: application/json" \ --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" \ --data '{ "bitbucket_server_url": "http://bitbucket.example.com", "bitbucket_server_username": "root", "personal_access_token": "Nzk4MDcxODY4MDAyOiP8y410zF3tGAyLnHRv/E0+3xYs", "bitbucket_server_project": "NEW", "bitbucket_server_repo": "my-repo" }' ```
                  <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>

                              哎呀哎呀视频在线观看