<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 添加子倉庫 ~~~ $ git submodule add <倉庫地址> <本地路徑> ~~~ 1. 新建一個父倉庫main,一個子倉庫sub。將父倉庫克隆到本地。 ~~~ $ git clone ssh://git@10.2.237.56:23/dennis/main.git ~~~ 2. 進入父倉庫,并添加子倉庫。 ~~~ $ git submodule add ssh://git@10.2.237.56:23/dennis/sub.git lib ~~~ 添加成功后,在父倉庫根目錄增加了.gitmodule文件。 ~~~ [submodule "sub"] path = lib url = ssh://git@10.2.237.56:23/dennis/sub.git ~~~ 并且在父倉庫的git 配置文件中加入了submodule段。 ~~~ $ cat .git/config // 加了submodule段 [submodule "sub"] url = ssh://git@10.2.237.56:23/dennis/sub.git ~~~ # 檢出(checkout) 克隆一個包含子倉庫的倉庫目錄,并不會clone下子倉庫的文件,只是會克隆下.gitmodule描述文件,需要進一步克隆子倉庫文件。 ~~~ // 初始化本地配置文件 $ git submodule init // 檢出父倉庫列出的commit $ git submodule update ~~~ 或者使用組合指令。 ~~~ $ git submodule update --init --recursive ~~~ 在子倉庫,切換到master分支,并git pull最新代碼之后,回到主倉庫目錄,會顯示子倉庫修改,需要在主倉庫提交修改,即修改指定的commit id。 ~~~ $ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: lib (new commits) no changes added to commit (use "git add" and/or "git commit -a") ~~~ # 更新 如果在本地修改子倉庫,在主倉庫 git status會顯示子倉庫有修改。 ~~~ $git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: lib (modified content) no changes added to commit (use "git add" and/or "git commit -a") ~~~ 需要現在子倉庫提交,然后再到主倉庫提交代碼。 # 刪除子倉庫 * 刪除.gitsubmodule里相關部分 * 刪除.git/config 文件里相關字段 * 刪除子倉庫目錄。 ~~~ $ git rm --cached <本地路徑> ~~~ **注**:如果未按照上述步驟刪除,可能殘留在.git/modudles文件夾內。
                  <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>

                              哎呀哎呀视频在线观看