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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ![](https://img.kancloud.cn/4f/ee/4fee80c4eeac2c80a113eb4018d0f0f8_390x246.png) ![](https://img.kancloud.cn/f4/b7/f4b72cf07430a1944f77a4941810521c_449x250.png) ![](https://img.kancloud.cn/de/b2/deb2a4c74be9083d1fc5aa77105f29a9_480x198.png) ### GIT工作原理及操作 當我們在本地創建一個git倉庫后,我們可以基于這個倉庫管理我們的代碼 **`git的工作流程`** > 每一個git倉庫都劃分為三個區域 > * 工作區:編輯代碼的地方 > * 暫存區:臨時存儲要生成版本代碼的地方 > * 歷史區:存儲的是生成的每一個版本代碼 ![](https://img.kancloud.cn/e0/24/e024770f63861251567e695a7928d833_1104x509.png) ![](https://img.kancloud.cn/13/8e/138e63347bd8715e661706ca99937e10_923x548.png) **`工作區提交到暫存區`** 工作區到暫存區 $ git add xxx 把指定的文件提交到暫存區 $ git add . 包含修改和增加的,但是不包含刪除的 $ git add -u 包含修改和刪除的,但是不包含新增的 $ git add -A 同時具備 . 和 -u 特征 $ git status 查看文件狀態 想要把某些文件忽略提交,項目根目錄增加 .gitignore 暫存區到歷史區 $ git commit 提交到歷史區 $ git commit -m'xxx' 提交到歷史區 $ git log 查看提交記錄 $ git reflog 查看所有的歷史記錄(包括歷史區回滾后) 查看每個區代碼區別 $ git diff 工作區VS暫存區 $ git diff master 工作區VS歷史區MASTER分支 $ git diff --cached 暫存區VS歷史區 還可以通過一些工具,直觀查看具體的區別(界面化操作) `$ git status ` > 查看代碼或者文件的狀態(當前處于哪個區域): 紅色(當前處于工作區,還沒有提交到暫存區) 綠色(當前處于暫存區,還沒有提交到歷史區) 如果沒有文件,代表三個區域代碼已經同步,歷史版本也在歷史區生成了 `$ git add . / $ git add -A` 把當前工作區中所有最新修改的文件,都提交到暫存區 **暫存區提交到歷史區,暫存區還是保存了內容,和工作區同步的代碼** **`暫存區到歷史區`** `$ git commit` > 這樣執行后,會彈出一個提交文本輸入界面,需要我們編寫本次提交到歷史區,給當前版本編寫的備注信息 > > 先按 i 進入編輯插入模式 > 輸入備注信息 > 按ESC > 輸入“ :wq ” 保存并退出 `$ git commit -m'自己需要編寫的備注信息'` `$ git log` 查看當前歷史區提交的記錄(查看版本信息) `$ git diff` 工作區 VS 暫存區 `$ git diff master` 工作區 VS 歷史區(master分支) `$ git diff --cached` 暫存區 VS 歷史區
                  <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>

                              哎呀哎呀视频在线观看