<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之旅 廣告
                # 管理 如果你正在管理一個 Git 倉庫,或者需要通過一個復雜的方法來修復某些東西,Git 提供了一些管理命令來幫助你。 ## git gc `git gc`?命令在你的倉庫中執行 “garbage collection” ,刪除數據庫中不需要的文件和將其他文件打包成一種更有效的格式。 此命令一般在背后為你工作,雖然你可以手動執行它-如果你想的話。 我們在[維護](http://git-scm.com/book/zh/v2/1-git-internals/_git_gc)?一節中研究此命令的幾個示例。 ## git fsck `git fsck`?命令用來檢查內部數據庫的問題或者不一致性。 我們只在?[數據恢復](http://git-scm.com/book/zh/v2/1-git-internals/_data_recovery)?這一節中快速使用了一次此命令來搜索所有的漂流對象(dangling object)。 ## git reflog `git reflog`?命令分析你所有分支的頭指針的日志來查找出你在重寫歷史上可能丟失的提交。 我們主要在?[引用日志](http://git-scm.com/book/zh/v2/1-git-tools/_git_reflog)?一節中提到了此命令,并在展示了一般用法,及如何使用?`git log -g`?來通過?`git log`?的輸出來查看同樣的信息。 我們同樣在?[數據恢復](http://git-scm.com/book/zh/v2/1-git-internals/_data_recovery)?一節中研究了一個恢復丟失的分支的實例。 ## git filter-branch `git filter-branch`?命令用來根據某些規則來重寫大量的提交記錄,例如從任何地方刪除文件,或者通過過濾一個倉庫中的一個單獨的子目錄以提取出一個項目。 在?[從每一個提交移除一個文件](http://git-scm.com/book/zh/v2/1-git-tools/_removing_file_every_commit)?一節中,我們解釋了此命令,并探究了其他幾個選項,例如?`--commit-filter`,`--subdirectory-filter`?及?`--tree-filter`?。 在?[Git-p4](http://git-scm.com/book/zh/v2/1-git-and-other-scms/_git_p4)?和?[TFS](http://git-scm.com/book/zh/v2/1-git-and-other-scms/_git_tfs)?的章節中我們使用它來修復已經導入到外部倉庫。
                  <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>

                              哎呀哎呀视频在线观看