<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之旅 廣告
                # Create a project > 原文:[https://docs.gitlab.com/ee/gitlab-basics/create-project.html](https://docs.gitlab.com/ee/gitlab-basics/create-project.html) * [Create a project in GitLab](#create-a-project-in-gitlab) * [Blank projects](#blank-projects) * [Project templates](#project-templates) * [Built-in templates](#built-in-templates) * [Enterprise templates](#enterprise-templates-ultimate) * [Custom project templates](#custom-project-templates-premium) * [Push to create a new project](#push-to-create-a-new-project) # Create a project[](#create-a-project "Permalink") GitLab 中的大多數工作都在一個[Project 中](../user/project/index.html)完成. 文件和代碼保存在項目中,并且大多數功能都在項目范圍內使用. ## Create a project in GitLab[](#create-a-project-in-gitlab "Permalink") 要在 GitLab 中創建項目: 1. 在信息中心中,點擊綠色的**新建項目**按鈕或使用導航欄中的加號圖標. 這將打開" **新項目"**頁面. 2. 在" **新建項目"**頁面上,選擇是否要: * 創建一個[空白項目](#blank-projects) . * 使用可用的[項目模板](#project-templates)之一創建一個項目. * 如果已在您的 GitLab 實例上啟用,則從其他存儲庫[導入項目](../user/project/import/index.html) . 如果不可用,請與您的 GitLab 管理員聯系. * 運行[用于外部存儲庫的 CI / CD 管道](../ci/ci_cd_for_external_repos/index.html) . **注意:**有關不能用作項目名稱的單詞列表,請參見[保留的項目和組名稱](../user/reserved_names.html) . ### Blank projects[](#blank-projects "Permalink") 要在" **新建項目"**頁面上創建一個新的空白項目,請執行以下操作: 1. 在" **空白項目"**選項卡上,提供以下信息: * **項目名稱**在**項目名稱**字段中. 您不能使用特殊字符,但可以使用空格,連字符,下劃線甚至表情符號. 添加名稱時, **Project slug**將自動填充. slug 是 GitLab 實例將用作項目的 URL 路徑的東西. 如果您要使用其他子彈,請先輸入項目名稱,然后再更改子彈. * **Project slug**字段中項目的路徑. 這是 GitLab 實例將使用的項目的 URL 路徑. 如果**項目名稱**為空白,則當您填寫**項目 slug**時,它將自動填充. * 使用" **項目描述"(可選)**字段,您可以為項目的儀表板輸入描述,這將幫助其他人了解您的項目的含義. 盡管不是必需的,但這是個好主意. * 更改" **可見性級別"**會修改用戶的項目[查看和訪問權限](../public_access/public_access.html) . * 選擇**使用 README 初始化存儲庫**選項將創建一個 README 文件,以便 Git 存儲庫被初始化,具有默認分支并可以被克隆. 2. Click **建立專案**. ### Project templates[](#project-templates "Permalink") 項目模板可以使用必要的文件預填充新項目,以使您快速入門. 有兩種類型的項目模板: * [內置模板](#built-in-templates) ,來自以下組: * [`project-templates`](https://gitlab.com/gitlab-org/project-templates) * [`pages`](https://gitlab.com/pages) * [自定義項目模板](#custom-project-templates-premium) ,用于由 GitLab 管理員和用戶配置的自定義模板. #### Built-in templates[](#built-in-templates "Permalink") 內置模板是項目模板,它們是: * 在[`project-templates`](https://gitlab.com/gitlab-org/project-templates)和[`pages`](https://gitlab.com/pages)組中開發和維護. * 與 GitLab 一起發布. 要在" **新建項目"**頁面上使用內置模板,請執行以下操作: 1. 在" **從模板創建"**選項卡上,選擇" **內置"**選項卡. 2. 從可用的內置模板列表中,單擊: * **預覽**按鈕以查看模板源本身. * **使用模板**按鈕開始創建項目. 3. 通過填寫項目的詳細信息來完成創建項目. 該過程與創建[空白項目](#blank-projects)相同. ##### Enterprise templates[](#enterprise-templates-ultimate "Permalink") GitLab 正在開發企業模板,以幫助您根據選定的法規標準簡化審核管理. 這些模板會自動導入與每個法規要求相對應的問題. 要使用企業模板創建新項目,請在" **新建項目"**頁面上: 1. 在" **從模板創建"**選項卡上,選擇" **內置"**選項卡. 2. 從可用的內置企業模板列表中,單擊: * **預覽**按鈕以查看模板源本身. * **使用模板**按鈕開始創建項目. 3. 通過填寫項目的詳細信息來完成創建項目. 該過程與創建[空白項目](#blank-projects)相同. 可用的企業模板包括: * HIPAA 審核協議模板(在 GitLab 12.10 中[引入](https://gitlab.com/gitlab-org/gitlab/-/issues/13756) ) **提示:**您可以按照[以下步驟](https://gitlab.com/gitlab-org/project-templates/contributing)改進現有的內置模板或在[`project-templates`](https://gitlab.com/gitlab-org/project-templates)和[`pages`](https://gitlab.com/pages)組中添加新的[`project-templates`](https://gitlab.com/gitlab-org/project-templates) . #### Custom project templates[](#custom-project-templates-premium "Permalink") [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/6860) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.2. Creating new projects based on custom project templates is a convenient option for quickly starting projects. 自定義項目可以在[實例級別](../user/admin_area/custom_project_templates.html)從**實例**選項卡,或在[組級別](../user/group/custom_project_templates.html)從**組**選項卡,在**從模板**標簽上的**創建** . 要在" **新建項目"**頁面上使用自定義項目模板: 1. 在" **從模板創建"**選項卡上,選擇" **實例"**選項卡或" **組"**選項卡. 2. 從可用的自定義模板列表中,單擊: * **預覽**按鈕以查看模板源本身. * **使用模板**按鈕開始創建項目. 3. 通過填寫項目的詳細信息來完成創建項目. 該過程與創建[空白項目](#blank-projects)相同. ## Push to create a new project[](#push-to-create-a-new-project "Permalink") 在 GitLab 10.5 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/26388) . 當您在本地創建新的存儲庫時,無需直接在 GitLab 上手動創建一個新項目然后[在](start-using-git.html#clone-a-repository)本地[克隆該](start-using-git.html#clone-a-repository)存儲庫,而無需將其直接發送到 GitLab 即可創建新項目. 如果您具有關聯的名稱空間的訪問權,則 GitLab 將在該 GitLab 名稱空間下自動創建一個新項目,其可見性默認設置為 Private(您以后可以在[項目的設置中](../public_access/public_access.html#how-to-change-project-visibility)對其進行更改). 這可以通過使用 SSH 或 HTTPS 來完成: ``` ## Git push using SSH git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git master ## Git push using HTTPS git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master ``` 推送成功完成后,將顯示一條遠程消息,指示將遙控器和 URL 設置為新項目的命令: ``` remote: remote: The private project namespace/nonexistent-project was created. remote: remote: To configure the remote, run: remote: git remote add origin https://gitlab.example.com/namespace/nonexistent-project.git remote: remote: To view the project, visit: remote: https://gitlab.example.com/namespace/nonexistent-project remote: ```
                  <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>

                              哎呀哎呀视频在线观看