<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 status`、`git add`、`git commit`、`git checkout`?是非常常用的命 令,因此對它們進行縮寫十分有用。 添加下列內容到你的?`$HOME`?目錄的?`.gitconfig`?文件中: ~~~ [alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short type = cat-file -t dump = cat-file -p ~~~ 我們已經介紹了?`commit`?和?`status`?命令。并且在上一實驗中 也介紹了?`log`?命令。`checkout`?命令將接下來介紹。 使用這些在?`.gitconfig`?中定義的別名,你可以通過輸入?`git co`?來表示`git checkout`。同時,`git st`?表示?`git status`,而?`git ci`?表示?`git commit`。并且,最好的是?`git hist`?將使你 避免很長的?`log`?命令。 去試試新命令吧。 ### 在 .gitconfig 文件中定義 hist 別名 在大多數介紹中,我將繼續輸入完整的命令。唯一的例外是, 當我需要看?`git log`?的輸出時,我將使用上面定義的?`hist`?別名。 如果你想要遵循這里,那么在繼續前設置你的?`.gitconfig`?文件。 ### 輸入與轉存 我們已經添加了幾個還沒有介紹的命令別名。`git branch`?命令 很快將介紹。`git cat-file`?命令對于瀏覽 Git 很有用,一會兒 我們將看看。 ### Shell 別名(可選) 注意:本小節是為那些運行 POSIX 類 Shell 的同學寫的。Windows 用戶及其他非 POSIX Shell 用戶可以跳到下一個實驗。 如果你的 Shell 支持別名或簡寫,那么你可以添加一些別名。 下面是我使用的: 文件:.profile ~~~ alias gs='git status ' alias ga='git add ' alias gb='git branch ' alias gc='git commit' alias gd='git diff' alias go='git checkout ' alias gk='gitk --all&' alias gx='gitx --all' alias got='git ' alias get='git ' ~~~ `git checkout`?的縮寫?`go`?尤其好,它允許我輸入: ~~~ $ go <branch> ~~~ 來檢出一個特定的分支。 另外,我也經常通過創建足夠的別名來避免打錯 Git 命令。 > 注意:有些 Shell 別名有點攻擊性。實際上,`gs`?將與 Linux GhostScript 程序沖突。最近我開始使用 Go 編程語言,因此必須 禁用上面的?`go`?別名。所以使用這些別名要小心。
                  <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>

                              哎呀哎呀视频在线观看