Created
January 17, 2020 15:17
-
-
Save Superbil/d142cf43ba8a42713764459fd7a1b8b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> LANG=en_US.UTF-8 git | |
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] | |
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] | |
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] | |
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] | |
<command> [<args>] | |
These are common Git commands used in various situations: | |
start a working area (see also: git help tutorial) | |
clone Clone a repository into a new directory | |
init Create an empty Git repository or reinitialize an existing one | |
work on the current change (see also: git help everyday) | |
add Add file contents to the index | |
mv Move or rename a file, a directory, or a symlink | |
restore Restore working tree files | |
rm Remove files from the working tree and from the index | |
sparse-checkout Initialize and modify the sparse-checkout | |
examine the history and state (see also: git help revisions) | |
bisect Use binary search to find the commit that introduced a bug | |
diff Show changes between commits, commit and working tree, etc | |
grep Print lines matching a pattern | |
log Show commit logs | |
show Show various types of objects | |
status Show the working tree status | |
grow, mark and tweak your common history | |
branch List, create, or delete branches | |
commit Record changes to the repository | |
merge Join two or more development histories together | |
rebase Reapply commits on top of another base tip | |
reset Reset current HEAD to the specified state | |
switch Switch branches | |
tag Create, list, delete or verify a tag object signed with GPG | |
collaborate (see also: git help workflows) | |
fetch Download objects and refs from another repository | |
pull Fetch from and integrate with another repository or a local branch | |
push Update remote refs along with associated objects | |
'git help -a' and 'git help -g' list available subcommands and some | |
concept guides. See 'git help <command>' or 'git help <concept>' | |
to read about a specific subcommand or concept. | |
See 'git help git' for an overview of the system. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> LANG=zh_TW.UTF-8 git | |
用法:git [--version] [--help] [-C <path>] [-c <name>=<value>] | |
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] | |
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] | |
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] | |
<command> [<args>] | |
這些是各種場合常見的 Git 指令: | |
開始一個工作區(參見:git help tutorial) | |
clone 複製版本庫到一個新目錄 | |
init 建立一個空的 Git 版本庫或重新初始化一個已存在的版本庫 | |
在目前變更上工作(參見:git help everyday) | |
add 新增檔案內容至索引 | |
mv 移動或重新命名一個檔案、目錄或符號連結 | |
restore 復原工作區檔案 | |
rm 從工作區和索引中刪除檔案 | |
sparse-checkout 初始化並修改稀疏簽出 | |
檢查歷史和狀態(參見:git help revisions) | |
bisect 透過二分尋找定位引入 bug 的提交 | |
diff 顯示提交之間、提交和工作區之間等的差異 | |
grep 輸出和模式符合的行 | |
log 顯示提交日誌 | |
show 顯示各種類型的物件 | |
status 顯示工作區狀態 | |
擴展、標記和調校您的歷史記錄 | |
branch 列出、建立或刪除分支 | |
commit 記錄變更到版本庫 | |
merge 合併兩個或更多開發歷史 | |
rebase 在另一個分支上重新應用提交 | |
reset 重設目前 HEAD 到指定狀態 | |
switch 切換分支 | |
tag 建立、列出、刪除或驗證一個 GPG 簽名的標籤物件 | |
協同(參見:git help workflows) | |
fetch 從另外一個版本庫下載物件和引用 | |
pull 取得並整合另外的版本庫或一個本機分支 | |
push 更新遠端引用和相關的物件 | |
指令 'git help -a' 和 'git help -g' 顯示可用的子指令和一些概念說明。 | |
檢視 'git help <指令>' 或 'git help <概念>' 以取得提供子指令或概念 | |
說明。 | |
有關系統概述,檢視 'git help git'。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment