Слияние кода завершено, страница обновится автоматически
{
"root": [
{
"name": "init",
"tip": [
"U: init [options]\n",
"创建一个空的 Git 仓库或重新初始化一个已存在的仓库。"
],
"options": [
{
"name": "-q",
"alias": [
"--quiet"
],
"tip": [
"U: -q|--quiet\n",
"仅打印错误和警告消息;所有其他输出将不会显示。"
]
},
{
"name": "--bare",
"tip": [
"创建一个裸仓库。如果未设置 GIT_DIR 环境变量,则将其设置为当前工作目录。"
]
},
{
"name": "--object-format=",
"tip": [
"U: --object-format=<format>\n",
"指定仓库的对象格式(哈希算法)。\n",
"有效值为 sha1 和(如果启用)sha256。sha1 是默认值。"
],
"next": [
{
"name": "sha1"
},
{
"name": "sha256"
}
]
},
{
"name": "--ref-format=",
"tip": [
"为存储库指定给定的 ref 存储 <format> 格式。"
],
"next": [
{
"name": "files",
"tip": [
"files 用于带有 packed-refs 的松散文件。\n",
"这是默认值。"
]
},
{
"name": "reftable",
"tip": [
"reftable 格式。\n",
"这种格式是试验性的,其内部结构可能会发生变化。"
]
}
]
},
{
"name": "--template=",
"tip": [
"U: --template=<template-directory>\n",
"指定一个自定义模板目录用于仓库初始化。"
],
"next": 0
},
{
"name": "--separate-git-dir=",
"tip": [
"U: --separate-git-dir=<git-dir>\n",
"并不将存储库初始化至 $GIT_DIR 或 ./.git/ 目录,而是在其中创建一个包含实际仓库路径的文本文件。\n",
"此文件作为连接到仓库的 Git 符号链接,其与文件系统无关。\n",
"如果为重新初始化操作,则将仓库移动到指定的路径。"
],
"next": 0
},
{
"name": "-b",
"alias": [
"--initial-branch="
],
"tip": [
"U: -b <branch-name> | --initial-branch=<branch-name>\n",
"在新创建的仓库中使用指定的名称作为初始分支。\n",
"如果未指定,则返回默认名称"
],
"next": [
{
"name": "main"
},
{
"name": "master"
}
]
},
{
"name": "--shared"
},
{
"name": "--shared=",
"tip": [
"U: --shared[=(false|true|umask|group|all|world|everybody|<perm>)]\n",
"指定 Git 仓库在多个用户之间共享。\n",
"这允许属于同一组的用户推送到该仓库。"
],
"next": [
{
"name": "umask",
"alias": [
"false"
],
"tip": [
"使用 umask 返回的权限\n",
"未指定 --shared 时,此为默认值。"
]
},
{
"name": "group",
"alias": [
"true"
],
"tip": [
"使仓库组可写(并且 g+sx,因为 git 组可能不是所有用户的主要组)。\n",
"这用于放宽原本安全的 umask 值的权限。"
]
},
{
"name": "all",
"alias": [
"world",
"everybody"
],
"tip": [
"与使用 group 选项相同,但使仓库对所有用户可读。"
]
}
]
}
]
},
{
"name": "clone",
"tip": [
"将一个仓库克隆到一个新的目录中。"
],
"options": [
{
"name": "-l",
"alias": [
"--local"
]
},
{
"name": "--no-hardlinks"
},
{
"name": "-s",
"alias": [
"--shared"
]
},
{
"name": "--reference"
},
{
"name": "--reference-if-able"
},
{
"name": "--dissociate"
},
{
"name": "-q",
"alias": [
"--quiet"
]
},
{
"name": "-v",
"alias": [
"--verbose"
]
},
{
"name": "--progress"
},
{
"name": "--server-option="
},
{
"name": "-n",
"alias": [
"--no-checkout"
]
},
{
"name": "--reject-shallow"
},
{
"name": "--no-reject-shallow"
},
{
"name": "--bare"
},
{
"name": "--sparse",
"tip": [
"采用稀疏检出(sparse-checkout),只检出顶层目录中的文件。"
]
},
{
"name": "--filter="
},
{
"name": "--also-filter-submodules"
},
{
"name": "--mirror"
},
{
"name": "-o",
"alias": [
"--origin"
]
},
{
"name": "-b",
"tip": [
"U: -b <branch>\n",
"指定要克隆的分支。\n",
"默认情况下, git clone 克隆远程仓库的主分支。"
],
"next": 0
},
{
"name": "-u",
"alias": [
"--upload-pack"
]
},
{
"name": "--template="
},
{
"name": "-c",
"alias": [
"--config"
]
},
{
"name": "--depth",
"tip": [
"U: --depth <n>\n",
"指定要克隆的提交历史的深度。"
],
"next": [
{
"name": "1",
"tip": [
"克隆只包含最新的提交, 不包含历史提交记录。"
]
}
]
},
{
"name": "--shallow-since="
},
{
"name": "--shallow-exclude="
},
{
"name": "--single-branch"
},
{
"name": "--no-single-branch"
},
{
"name": "--no-tags"
},
{
"name": "--recurse-submodules"
},
{
"name": "--shallow-submodules"
},
{
"name": "--no-shallow-submodules"
},
{
"name": "--remote-submodules"
},
{
"name": "--no-remote-submodules"
},
{
"name": "--separate-git-dir="
},
{
"name": "--ref-format="
},
{
"name": "-j",
"alias": [
"--jobs"
],
"tip": [
"U: -j <n>\n",
"指定用于并行克隆的线程数以加速过程。"
],
"next": 0
},
{
"name": "--bundle-uri="
}
]
},
{
"name": "add",
"tip": [
"将文件更改添加到索引中。"
],
"options": [
{
"name": ".",
"tip": [
"将当前目录及其子目录中的所有更改(包括新文件、修改过的文件和删除的文件)添加到索引中"
]
},
{
"name": "-A",
"alias": [
"--all"
],
"tip": [
"U: -A|--all\n",
"将当前工作树中的所有更改(包括新文件、修改过的文件和删除的文件)添加到索引中"
]
},
{
"name": "-f",
"alias": [
"--force"
],
"tip": [
"U: -f|--force\n",
"允许添加被忽略的文件"
]
},
{
"name": "-i",
"alias": [
"--interactive"
],
"tip": [
"U: -i|--interactive\n",
"交互式地将工作树中修改的内容添加到索引中"
]
},
{
"name": "-p",
"alias": [
"--patch"
],
"tip": [
"U: -p|--patch\n",
"交互式地在索引和工作树之间选择内容块添加到索引中\n",
"类似于 git add -i, 但跳过初始命令菜单, 直接进入补丁子命令"
]
},
{
"name": "-e",
"alias": [
"--edit"
],
"tip": [
"U: -e|--edit\n",
"打开差异和索引在编辑器中进行进一步编辑"
]
},
{
"name": "-u",
"alias": [
"--update"
],
"tip": [
"U: -u|--update\n",
"将工作区中已追踪的文件(已存在于 Git 仓库中的文件)的修改和删除操作添加到暂存区,但不会添加新文件。"
]
},
{
"name": "--refresh",
"tip": [
"不要添加文件,只是在索引中刷新它们的 stat() 信息。"
]
},
{
"name": "--ignore-errors",
"tip": [
"如果在索引某些文件时出现错误,导致无法添加这些文件,不要中止操作,而是继续尝试添加其他文件。\n",
"命令仍应以非零状态退出。\n",
"可以通过设置配置变量 add.ignoreErrors 为 true 来使此行为成为默认设置。"
]
}
]
},
{
"name": "commit",
"tip": [
"记录对仓库的更改。"
],
"options": [
{
"name": "-m",
"tip": [
"U: -m <message>\n",
"为提交指定一个描述性信息"
],
"next": 0
},
{
"name": "-a",
"alias": [
"--all"
],
"tip": [
"U: -a|--all\n",
"自动将跟踪文件的更改暂存到索引中"
]
},
{
"name": "-e",
"alias": [
"--edit"
],
"tip": [
"U: -e|--edit\n",
"启动编辑器编辑提交信息"
]
},
{
"name": "--amend",
"tip": [
"修改最后一次提交的信息(创建一个新的提交, 替换最后一个提交)"
]
},
{
"name": "—allow-empty",
"tip": [
"用于没有提交信息的 commit"
]
},
{
"name": "--fixup",
"tip": [
"当前添加的 commit 是以前某一个 commit 的修正。\n",
"以后执行互动式的git rebase的时候,这两个 commit 将会合并成一个。"
],
"next": []
},
{
"name": "--squash",
"tip": [
"当前添加的 commit 应该与以前某一个 commit 合并成一个。\n",
"以后执行互动式的git rebase的时候,这两个 commit 将会合并成一个。"
],
"next": []
},
{
"name": "-p",
"alias": [
"--patch"
],
"tip": [
"U: -p|--patch\n",
"交互式地选择要提交的更改"
]
},
{
"name": "-t",
"tip": [
"U: -t <file>\n",
"从给定文件中获取提交信息, 并启动编辑器进行编辑"
],
"next": 0
},
{
"name": "-F",
"tip": [
"U: -F <file>\n",
"从给定文件中获取提交信息"
],
"next": 0
},
{
"name": "-C",
"tip": [
"U: -C <commit>\n",
"获取一个已存在的提交对象, 并在创建提交时重用日志信息和作者信息(包括时间戳)"
],
"next": []
},
{
"name": "--reset-author",
"tip": [
"当与 -C/-c/--amend 选项一起使用时,或者当在一个冲突的 cherry-pick 之后提交时,声明所产生的提交的作者身份现在属于提交者。\n",
"这也是对作者时间戳的更新。"
]
},
{
"name": "--short",
"tip": [
"当做干运行的时候,以简短的形式给出输出。\n",
"意味着 --dry-run"
]
},
{
"name": "--branch",
"tip": [
"即使在短文中也要显示分支和跟踪信息。"
]
},
{
"name": "--porcelain",
"tip": [
"在做干运行的时候,要把输出结果以可瓷器的格式给出。\n",
"意味着 --dry-run。"
]
},
{
"name": "--long",
"tip": [
"当做干运行时,以长格式给出输出。\n",
"意味着 --dry-run。"
]
},
{
"name": "-s",
"alias": [
"--signoff"
]
},
{
"name": "--no-signoff"
}
]
},
{
"name": "push",
"tip": [
"更新远程引用及相关对象"
],
"options": [
{
"name": "--all",
"tip": [
"推送所有分支"
]
}
]
},
{
"name": "pull",
"tip": [
"从另一个仓库或本地分支获取并合并"
],
"options": [
{
"name": "--all",
"tip": [
"从所有远程分支获取并合并"
]
},
{
"name": "-r",
"alias": [
"--rebase"
]
}
]
},
{
"name": "fetch",
"tip": [
"从另一个仓库下载对象和引用"
],
"options": [
{
"name": "--all",
"tip": [
"从所有远程分支获取并合并"
]
}
]
},
{
"name": "status",
"tip": [
"显示工作树的状态。"
],
"options": [
{
"name": "-s",
"alias": [
"--short"
],
"tip": [
"U: -s|--short\n",
"以短格式显示输出"
]
},
{
"name": "-b",
"alias": [
"--branch"
],
"tip": [
"U: -b|--branch\n",
"即使是在短格式中也显示分支和跟踪信息"
]
},
{
"name": "--show-stash",
"tip": [
"显示隐藏在stash中的条目数量"
]
},
{
"name": "-v",
"alias": [
"--verbose"
],
"tip": [
"U: -v|--verbose\n",
"显示将要提交的额外文本更改"
]
},
{
"name": "-vv",
"tip": [
"显示工作树中未提交的更改"
]
}
]
},
{
"name": "log",
"tip": [
"显示提交日志。"
],
"options": [
{
"name": "-n",
"tip": [
"U: -n <n>\n",
"显示最后 n 条提交信息"
],
"next": 0
},
{
"name": "--graph",
"tip": [
"在日志旁边以 ASCII 艺术形式显示分支和合并历史"
]
},
{
"name": "--oneline",
"tip": [
"每条提交信息显示在一行上"
]
},
{
"name": "--stat",
"tip": [
"显示每个提交中文件修改的统计信息\n",
"每个提交列出修改的文件、添加和删除的行, 以及所有行更改的摘要"
]
},
{
"name": "--shortstat",
"tip": [
"仅显示 --stat 的摘要行"
]
},
{
"name": "-p",
"tip": [
"以补丁格式显示每个更新的差异, 比 --stat 更详细"
]
},
{
"name": "--name-only",
"tip": [
"在提交信息后显示修改文件的列表"
]
},
{
"name": "--name-status",
"tip": [
"显示添加、修改和删除文件的列表"
]
},
{
"name": "--abbrev-commit",
"tip": [
"仅显示 SHA-1 校验和的前几个字符, 而不是全部的 40 个字符"
]
},
{
"name": "--relative-date",
"tip": [
"以较短的相对格式显示日期, 而不是完整格式(例如, 2 周前)"
]
},
{
"name": "--pretty",
"tip": [
"以自定义格式显示提交历史"
]
},
{
"name": "--pretty=oneline",
"tip": [
"每条提交信息显示在一行上, 只显示哈希和提交信息"
]
},
{
"name": "--pretty=short",
"tip": [
"显示哈希、作者和提交信息"
]
},
{
"name": "--pretty=full",
"tip": [
"显示哈希、作者、提交和提交信息"
]
},
{
"name": "--pretty=fuller",
"tip": [
"显示哈希、作者、作者日期、提交、提交日期和提交信息"
]
},
{
"name": "--pretty=format:\"\"",
"tip": [
"控制显示信息的格式"
]
}
]
},
{
"name": "rebase",
"tip": [
"将本地提交移动到更新后的上游分支的尖端。\n",
"用于修改提交历史, 通常用于将一个分支的提交整合到另一个分支。"
],
"options": [
{
"name": "-i",
"alias": [
"--interactive"
],
"tip": [
"U: -i|--interactive\n",
"允许交互式 rebase, 为每个提交启用编辑、合并、删除等功能。"
],
"next": []
},
{
"name": "--onto",
"tip": [
"U: --onto <new_base_branch>\n",
"指定一个新的基础分支, 将当前分支上的提交应用到该分支。"
],
"next": 0
},
{
"name": "--abort",
"tip": [
"取消正在进行的rebase操作, 并返回到rebase开始之前的状态。"
]
},
{
"name": "--continue",
"tip": [
"继续rebase操作, 通常在解决冲突后使用。"
]
},
{
"name": "--skip",
"tip": [
"跳过当前提交并继续rebase操作。"
]
},
{
"name": "--merge",
"tip": [
"将一个分支合并到目标分支, 而不是逐个应用提交。"
]
},
{
"name": "-x",
"tip": [
"U: -x <cmd>\n",
"在每个提交应用后执行指定的命令, 对于自动化操作(如测试和代码检查)很有用。"
],
"next": 0
},
{
"name": "-p",
"tip": [
"保留合并提交的结构, 以保持合并历史。"
]
}
]
},
{
"name": "branch",
"tip": [
"列出、创建或删除分支。"
],
"options": [
{
"name": "-a",
"tip": [
"列出所有分支, 包括本地和远程分支。"
]
},
{
"name": "-d",
"tip": [
"U: -d <branch>\n",
"删除指定的分支。"
],
"next": []
},
{
"name": "-D",
"tip": [
"U: -D <branch>\n",
"强制删除指定的分支。"
],
"next": []
},
{
"name": "-m",
"tip": [
"U: -m <old_branch> <new_branch>\n",
"重命名指定的分支。"
],
"next": []
},
{
"name": "-M",
"tip": [
"U: -M <old_branch> <new_branch>\n",
"强制重命名指定的分支。"
],
"next": []
},
{
"name": "-v",
"tip": [
"查看带有最后提交信息的本地分支。"
]
},
{
"name": "-vv",
"tip": [
"查看带有最后提交信息以及与分支和远程分支关系的本地分支。"
]
}
]
},
{
"name": "checkout",
"tip": [
"在工作树中切换分支或路径。\n",
"E: checkout <branch> --- 切换分支\n",
" checkout <commit_hash> --- 切换到特定的提交\n",
" checkout -b <new_branch> --- 创建并切换到新的分支"
],
"options": [
{
"name": "-",
"tip": [
"切换到之前切换的分支。"
]
},
{
"name": "-b",
"tip": [
"U: -b <new_branch>\n",
"创建并切换到新的分支"
]
},
{
"name": "-B",
"tip": [
"U: -B <new_branch>\n",
"强制创建(如果分支已存在则覆盖)并切换到分支"
]
},
{
"name": "--orphan",
"tip": [
"U: --orphan <new_branch>\n",
"创建一个新的孤立分支"
]
},
{
"name": ".",
"tip": [
"放弃工作目录中的所有更改; 保留索引。"
]
},
{
"name": "-f",
"tip": [
"强制放弃索引和工作目录中的更改。"
]
}
]
},
{
"name": "switch",
"tip": [
"切换分支。"
],
"options": [
{
"name": "-c",
"alias": [
"--create"
],
"tip": [
"U: -c|--create <new_branch>\n",
"创建一个新分支并切换到它。"
]
},
{
"name": "-",
"tip": [
"切换到之前切换的分支。"
]
}
]
},
{
"name": "merge",
"tip": [
"合并两个或更多开发历史。"
],
"options": [
{
"name": "--squash",
"tip": [
"将合并结果压缩为一个提交,并且不会保留源分支的提交历史。\n",
"然后你需要指定一个新的提交信息"
]
},
{
"name": "--continue",
"tip": [
"继续当前的合并操作。"
]
},
{
"name": "--abort",
"tip": [
"终止合并并返回到原始状态。"
]
},
{
"name": "--quit",
"tip": [
"保留当前的冲突并退出合并。"
]
}
]
},
{
"name": "diff",
"tip": [
"显示提交之间的更改、提交与工作树之间的更改等等。\n",
"E: diff <file> --- 显示工作目录中指定文件与索引之间的差异。\n",
" diff <commit1> <commit2> --- 比较两个提交之间的差异。\n",
" diff <branch1> <branch2> --- 比较两个分支之间的差异。"
],
"options": [
{
"name": "--staged",
"tip": [
"比较索引与最新提交之间的差异。"
]
},
{
"name": "--color-words",
"tip": [
"比较工作目录与最新提交之间的词差异。"
]
}
]
},
{
"name": "reflog",
"tip": [
"管理reflog信息。"
],
"next": [
{
"name": "show",
"tip": [
"显示reflog中的提交历史。"
]
},
{
"name": "delete",
"tip": [
"从reflog中移除条目。"
]
},
{
"name": "expire",
"tip": [
"移除较旧的reflog条目。"
]
},
{
"name": "exists",
"tip": [
"检查一个ref是否有关联的reflog条目。"
]
}
]
},
{
"name": "remote",
"tip": [
"管理Git仓库中的远程仓库。"
],
"next": [
{
"name": "add",
"tip": [
"添加一个新的远程仓库。"
]
},
{
"name": "rename",
"tip": [
"重命名一个远程仓库。"
],
"options": [
{
"name": "--progress",
"tip": [
"强行进度报告"
]
}
]
},
{
"name": "rm",
"alias": [
"remove"
],
"tip": [
"U: rm|remove <repository>\n",
"移除一个远程仓库。"
],
"next": []
},
{
"name": "set-head",
"tip": [
"在远程仓库上设置默认分支。"
]
},
{
"name": "set-branches",
"tip": [
"在远程仓库上设置要跟踪的分支列表。"
]
},
{
"name": "get-url",
"tip": [
"显示远程仓库的URL。"
]
},
{
"name": "set-url",
"tip": [
"更改远程仓库的URL。"
]
},
{
"name": "show",
"tip": [
"显示关于远程仓库的信息。"
]
},
{
"name": "prune",
"tip": [
"从远程仓库中移除过时的引用。"
]
},
{
"name": "update",
"tip": [
"从远程仓库中获取更新。"
]
}
],
"options": [
{
"name": "-v",
"tip": [
"列出当前配置的远程仓库并显示它们的URL。"
]
}
]
},
{
"name": "tag",
"tip": [
"创建、列出、删除或验证带有或不带有GPG签名的标签。\n",
"E: tag [-l|--list] --- 列出标签\n",
" tag v1.0.0 --- 创建一个标签\n",
" tag -d v1.0.0 --- 删除一个标签"
],
"options": [
{
"name": "-l",
"alias": [
"--list"
],
"tip": [
"U: -l|--list [pattern]\n",
"列出标签(可以使用通配符)。\n",
"E: -l v1.0*"
],
"next": 0
},
{
"name": "-n",
"tip": [
"U: -n[num]\n",
"[num] 用于指定在使用 -l 时打印注释的行数(如果存在),这暗含了 --list。\n",
"默认情况下不打印任何注释行。如果没有给 -n 赋值,则只打印第一行。如果标签没有注释,则会显示提交信息。"
]
},
{
"name": "-a",
"alias": [
"--annotate"
],
"tip": [
"U: -a|--annotate <tag>\n",
"创建一个注解标签对象。\n",
"E: -a v1.0.0"
],
"next": 0
},
{
"name": "-d",
"alias": [
"--delete"
],
"tip": [
"U: -d|--delete <tag>\n",
"删除标签。"
],
"next": []
},
{
"name": "-m"
},
{
"name": "-e"
},
{
"name": "-v",
"alias": [
"--verify"
],
"tip": [
"U: -v|--verify <tag>\n",
"验证标签。"
],
"next": []
}
]
},
{
"name": "config",
"tip": [
"U: config [--global] ...\n",
"检索和配置仓库或全局选项。"
],
"next": [
{
"name": "user.name",
"tip": [
"配置用户名。\n",
"E: [--global] user.name xxx"
]
},
{
"name": "user.email",
"tip": [
"配置邮箱。\n",
"E: [--global] user.email xxx@outlook.com"
]
},
{
"name": "init.defaultBranch"
},
{
"name": "core.editor",
"tip": [
"配置默认编辑器。"
],
"next": [
{
"name": "\"code --wait\"",
"tip": [
"将默认编辑器设置为 vscode。"
]
},
{
"name": "vim",
"tip": [
"将默认编辑器设置为 vim。"
]
},
{
"name": "nvim",
"tip": [
"将默认编辑器设置为 nvim。"
]
},
{
"name": "notepad",
"tip": [
"将默认编辑器设置为 Notepad。"
]
}
]
},
{
"name": "core.ignorecase",
"tip": [
"配置是否忽略大小写。\n",
"默认值为 false,但 git clone 或 git init 会在创建存储库时探测并将 core.ignoreCase 设置为 true(如果合适)。"
],
"next": [
{
"name": "false"
},
{
"name": "true"
}
]
},
{
"name": "https.proxy",
"tip": [
"配置 Git https 代理。\n",
"E: [--global] https.proxy 127.0.0.1:10810 --- 设置代理。\n",
" [--global] --unset https.proxy --- 取消代理设置。"
]
},
{
"name": "user.signingkey",
"tip": [
"配置 GPG 签名的私钥。"
]
},
{
"name": "gpg.program",
"tip": [
"配置 GPG 程序路径。"
]
},
{
"name": "commit.gpgsign",
"tip": [
"配置是否对提交进行 GPG 签名。"
],
"next": [
{
"name": "true",
"tip": [
"对提交进行 GPG 签名。"
]
},
{
"name": "false",
"tip": [
"不对提交进行 GPG 签名。"
]
}
]
},
{
"name": "commit.template",
"tip": [
"配置默认提交模板。\n",
"E: [--global] commit.template ~/.gitmessage"
]
},
{
"name": "color.ui",
"tip": [
"配置命令自动着色。"
],
"next": [
{
"name": "true",
"tip": [
"启用命令自动着色配置。"
]
},
{
"name": "false",
"tip": [
"禁用命令自动着色配置。"
]
}
]
},
{
"name": "color.status",
"tip": [
"配置 status 命令的自动着色。"
],
"next": [
{
"name": "auto",
"tip": [
"默认值。\n",
"根据终端支持自动确定是否启用颜色显示。"
]
},
{
"name": "always",
"tip": [
"始终启用颜色显示, 无论终端支持与否。"
]
},
{
"name": "never",
"tip": [
"从不启用颜色显示, 即使终端支持。"
]
}
]
},
{
"name": "color.diff",
"tip": [
"配置 diff 命令的自动着色。"
],
"next": [
{
"name": "auto",
"tip": [
"默认值。\n",
"根据终端支持自动确定是否启用颜色显示。"
]
},
{
"name": "always",
"tip": [
"始终启用颜色显示, 无论终端支持与否。"
]
},
{
"name": "never",
"tip": [
"从不启用颜色显示, 即使终端支持。"
]
}
]
},
{
"name": "color.branch",
"tip": [
"配置 branch 命令的自动着色。"
],
"next": [
{
"name": "auto",
"tip": [
"默认值。\n",
"根据终端支持自动确定是否启用颜色显示。"
]
},
{
"name": "always",
"tip": [
"始终启用颜色显示, 无论终端支持与否。"
]
},
{
"name": "never",
"tip": [
"从不启用颜色显示, 即使终端支持。"
]
}
]
},
{
"name": "color.interactive",
"tip": [
"配置交互式命令(-i)的自动着色。"
],
"next": [
{
"name": "auto",
"tip": [
"默认值。\n",
"根据终端支持自动确定是否启用颜色显示。"
]
},
{
"name": "always",
"tip": [
"始终启用颜色显示, 无论终端支持与否。"
]
},
{
"name": "never",
"tip": [
"从不启用颜色显示, 即使终端支持。"
]
}
]
}
],
"options": [
{
"name": "--global",
"tip": [
"执行全局设置。"
]
},
{
"name": "-e",
"alias": [
"--edit"
],
"tip": [
"U: -e|--edit\n",
"编辑当前仓库的配置。"
]
},
{
"name": "--unset",
"tip": [
"移除配置。\n",
"E: [--global] --unset user.name"
],
"next": [
{
"name": "user.name",
"tip": [
"移除配置 --- 用户名。"
]
},
{
"name": "user.email",
"tip": [
"移除配置 --- 邮箱。"
]
},
{
"name": "core.editor",
"tip": [
"移除配置 --- 默认编辑器。"
]
},
{
"name": "https.proxy",
"tip": [
"移除配置 --- Git https 代理。"
]
},
{
"name": "user.signingkey",
"tip": [
"移除配置 --- GPG 签名的私钥。"
]
},
{
"name": "gpg.program",
"tip": [
"移除配置 --- GPG 程序路径。"
]
},
{
"name": "commit.gpgsign",
"tip": [
"移除配置 --- 是否对提交进行 GPG 签名。"
]
},
{
"name": "commit.template",
"tip": [
"移除配置 --- 默认提交模板。"
]
},
{
"name": "color.ui",
"tip": [
"移除配置 --- 命令自动着色。"
]
},
{
"name": "color.status",
"tip": [
"移除配置 --- status 命令的自动着色。"
]
},
{
"name": "color.diff",
"tip": [
"移除配置 --- diff 命令的自动着色。"
]
},
{
"name": "color.branch",
"tip": [
"移除配置 --- branch 命令的自动着色。"
]
},
{
"name": "color.interactive",
"tip": [
"移除配置 --- 交互式命令(-i)的自动着色。"
]
}
]
},
{
"name": "--get",
"tip": [
"获取配置值(通常可以省略)。\n",
"E: [--global] [--get] user.name"
]
}
]
},
{
"name": "stash",
"tip": [
"在 stash 中暂存更改。\n",
"请注意, 当有多个 stash 时, 它们是从新到旧的顺序排列的, 索引从 0 开始。\n",
"如果不输入索引, 则默认操作第一个 stash。(stash@{0})"
],
"next": [
{
"name": "list",
"tip": [
"列出所有 stash。"
]
},
{
"name": "show",
"tip": [
"U: show [<index>]\n",
"要显示其他 stash, 请指定一个 index。\n",
"index: 代表 stash 的索引, 从 0 开始。\n",
"E: show 1 --- 显示第二个 stash (stash@{1})"
],
"options": [
{
"name": "-p",
"alias": [
"--patch"
],
"tip": [
"查看 stash 的详细 diff 信息。"
]
}
]
},
{
"name": "pop",
"tip": [
"U: pop [<index>]\n",
"应用并移除 stash 中的更改。与 'apply' 不同的地方在于, 'pop' 在应用后移除 stash。\n",
"E: pop 1 --- 应用并移除第二个 stash (stash@{1})"
],
"next": []
},
{
"name": "apply",
"tip": [
"U: apply [<index>]\n",
"应用 stash 中的更改。与 'pop' 不同的地方在于, 'apply' 在应用后不删除 stash。\n",
"E: apply 1 --- 应用第二个 stash (stash@{1})"
],
"next": []
},
{
"name": "push",
"tip": [
"暂存更改(相当于 'git stash')。"
],
"options": [
{
"name": "-m",
"tip": [
"为这个 stash 指定一个描述性信息。\n",
"E: -m \"Remark\" (相当于 'git stash -m \"Remark\"')"
],
"next": 0
}
]
},
{
"name": "drop",
"tip": [
"U: drop [<index>]\n",
"移除一个 stash。\n",
"E: drop 1 --- 移除第二个 stash (stash@{1})"
],
"next": []
},
{
"name": "clear",
"tip": [
"清除 stash。"
]
}
],
"options": [
{
"name": "-m",
"tip": [
"为这个 stash 指定一个描述性信息。\n",
"E: -m \"Remark\""
],
"next": 0
}
]
},
{
"name": "reset",
"tip": [
"将当前 HEAD 重置到指定的提交。"
],
"options": [
{
"name": "--soft",
"tip": [
"将 HEAD 移动到指定的提交, 同时保持工作目录和暂存区的更改(索引)。"
],
"next": []
},
{
"name": "--mixed",
"tip": [
"默认行为: 将 HEAD 移动到指定的提交, 并将工作目录和暂存区的更改移动到工作目录。"
],
"next": []
},
{
"name": "--hard",
"tip": [
"将 HEAD 移动到指定的提交, 并移除所有更改, 包括工作目录和索引中的更改。请小心, 因为这是不可逆的。"
],
"next": []
}
]
},
{
"name": "cherry",
"tip": [
"查找本地提交列表中未推送到远程的提交, 并显示它们的哈希值。"
],
"options": [
{
"name": "-v",
"tip": [
"显示哈希值和提交信息。"
]
}
]
},
{
"name": "cherry-pick",
"tip": [
"从其他分支选择一个指定的提交并应用到当前分支。\n",
"E: cherry-pick <commit1> --- 选择 commit1\n",
" cherry-pick <commit1..commit2> --- 选择 commit1 和 commit2 之间的所有提交(不包括 commit1)\n",
" cherry-pick <commit1^..commit2> --- 选择 commit1 和 commit2 之间的所有提交(包括 commit1)"
],
"options": [
{
"name": "--continue",
"tip": [
"继续合并(在使用此命令之前应已解决冲突)。"
]
},
{
"name": "--abort",
"tip": [
"取消 cherry-pick 操作并返回到原始状态。"
]
},
{
"name": "--quit",
"tip": [
"保留当前的冲突并退出 cherry-pick。"
]
}
]
},
{
"name": "rm",
"tip": [
"从工作目录中删除指定的文件并暂存删除。"
],
"options": [
{
"name": "-f",
"tip": [
"强制从工作目录中删除指定的文件, 即使它已被修改并暂存。"
]
},
{
"name": "--cached",
"tip": [
"停止跟踪指定的文件(从索引中删除指定的文件), 但保留它在工作目录中。"
]
}
]
},
{
"name": "mv",
"tip": [
"移动或重命名文件、目录或符号链接, 并暂存更改。"
],
"options": [
{
"name": "-f",
"tip": [
"强制移动或重命名文件、目录或符号链接, 并暂存更改。"
]
}
]
},
{
"name": "show",
"tip": [
"显示与当前提交和文件更改相关的信息\n",
"E: show --- 显示 HEAD\n",
" show <commit_hash> --- 显示提交"
],
"next": []
},
{
"name": "shortlog",
"tip": [
"总结 Git 日志输出。"
]
},
{
"name": "show-branch",
"tip": [
"显示分支及其提交。"
]
},
{
"name": "revert",
"tip": [
"U: revert <commit-hash>\n",
"撤销由指定提交所做的更改(创建新的提交)。"
],
"next": []
},
{
"name": "annotate",
"alias": [
"blame"
],
"tip": [
"显示每个文件行中的作者信息和最后修改的提交信息, 以及行的内容。"
]
},
{
"name": "format-patch",
"tip": [
"创建补丁, 其中 N 代表要生成的补丁数量(每个提交一个补丁)。\n",
"E: format-patch -2 --- 从最后两个提交生成两个补丁文件(xxx.patch)"
]
},
{
"name": "am",
"tip": [
"应用补丁。"
],
"options": [
{
"name": "--show-current-patch=diff",
"tip": [
"查看失败的补丁。"
]
},
{
"name": "--continue",
"alias": [
"--resolved"
],
"tip": [
"U: --continue|--resolved\n",
"继续应用补丁(在使用此命令之前应已解决冲突)。"
]
},
{
"name": "--skip",
"tip": [
"跳过此补丁。"
]
},
{
"name": "--abort",
"tip": [
"取消应用补丁并恢复原始状态。"
]
}
]
},
{
"name": "apply",
"tip": [
"将补丁应用到文件和/或索引。"
],
"options": [
{
"name": "--reject",
"tip": [
"U: --reject <patch_file>\n",
"自动合并补丁中的非冲突代码更改, 同时生成冲突内容作为 xxx.rej 文件。"
],
"next": 0
}
]
},
{
"name": "clean",
"tip": [
"从工作树中删除未跟踪的文件。"
]
},
{
"name": "count-objects",
"tip": [
"计算未打包的对象并显示它们的磁盘使用情况。"
],
"options": [
{
"name": "-H",
"alias": [
"--human-readable"
],
"tip": [
"U: -H|--human-readable\n",
"以人类可读的格式打印大小。"
]
},
{
"name": "-v",
"alias": [
"--verbose"
],
"tip": [
"U: -v|--verbose\n",
"同时报告已打包的对象数量和可以移除的对象数量。"
]
}
]
},
{
"name": "flow",
"tip": [
"管理分支和开发工作流程。"
],
"next": [
{
"name": "init",
"tip": [
"初始化一个新的 Git 仓库, 并指定分支模型。"
]
},
{
"name": "feature",
"tip": [
"管理特性分支。"
]
},
{
"name": "bugfix",
"tip": [
"管理修复分支。"
]
},
{
"name": "release",
"tip": [
"管理发布分支。"
]
},
{
"name": "hotfix",
"tip": [
"管理热修复分支。"
]
},
{
"name": "support",
"tip": [
"管理支持分支。"
]
},
{
"name": "version",
"tip": [
"显示版本信息。"
]
},
{
"name": "config",
"tip": [
"管理 Git-flow 配置。"
]
},
{
"name": "log",
"tip": [
"显示不匹配基础分支的日志。"
]
}
]
},
{
"name": "lfs",
"tip": [
"Work with large files in Git repositories."
],
"next": [
{
"name": "checkout",
"tip": [
"Populate working copy with real content from Git LFS files."
]
},
{
"name": "completion",
"tip": [
"Generate shell scripts for command-line tab-completion of Git LFS commands."
],
"next": [
{
"name": "bash"
},
{
"name": "fish"
},
{
"name": "zsh"
}
]
},
{
"name": "dedup",
"tip": [
"De-duplicate Git LFS files."
]
},
{
"name": "env",
"tip": [
"Display the Git LFS environment."
]
},
{
"name": "ext",
"tip": [
"Display Git LFS extension details."
]
},
{
"name": "fetch",
"tip": [
"Download Git LFS files from a remote."
]
},
{
"name": "fsck",
"tip": [
"Check Git LFS files for consistency."
]
},
{
"name": "install",
"tip": [
"Install Git LFS configuration."
]
},
{
"name": "lock",
"tip": [
"Set a file as \"locked\" on the Git LFS server."
]
},
{
"name": "locks",
"tip": [
"List currently \"locked\" files from the Git LFS server."
]
},
{
"name": "logs",
"tip": [
"Show errors from the Git LFS command."
]
},
{
"name": "ls-files",
"tip": [
"Show information about Git LFS files in the index and working tree."
]
},
{
"name": "migrate",
"tip": [
"Migrate history to or from Git LFS."
]
},
{
"name": "prune",
"tip": [
"Delete old Git LFS files from local storage."
]
},
{
"name": "pull",
"tip": [
"Fetch Git LFS changes from the remote & checkout any required working tree files."
]
},
{
"name": "push",
"tip": [
"Push queued large files to the Git LFS endpoint."
]
},
{
"name": "status",
"tip": [
"Show the status of Git LFS files in the working tree."
]
},
{
"name": "track",
"tip": [
"View or add Git LFS paths to Git attributes."
]
},
{
"name": "uninstall",
"tip": [
"Uninstall Git LFS by removing hooks and smudge/clean filter configuration."
]
},
{
"name": "unlock",
"tip": [
"Remove \"locked\" setting for a file on the Git LFS server."
]
},
{
"name": "untrack",
"tip": [
"Remove Git LFS paths from Git Attributes."
]
},
{
"name": "update",
"tip": [
"Update Git hooks for the current Git repository."
]
},
{
"name": "version",
"tip": [
"Report the version number."
]
}
]
},
{
"name": "prune",
"tip": [
"从对象数据库中删除所有不可达的对象。"
]
},
{
"name": "grep",
"tip": [
"打印匹配模式的行。"
]
},
{
"name": "gc",
"tip": [
"清理不必要的文件并优化本地仓库。"
]
},
{
"name": "archimport",
"tip": [
"将 Arch 仓库导入 Git。"
]
},
{
"name": "archive",
"tip": [
"从命名树创建文件归档。"
]
},
{
"name": "bisect",
"tip": [
"使用二分查找法查找引入错误的更改。"
],
"next": [
{
"name": "bad",
"tip": [
"将当前或给定的修订标记为坏的。"
]
},
{
"name": "good",
"tip": [
"将当前或给定的修订标记为好的。"
]
},
{
"name": "help",
"tip": [
"显示帮助信息。"
]
},
{
"name": "log",
"tip": [
"显示当前二分查找的日志。"
]
},
{
"name": "next",
"tip": [
"查找并检出要测试的下一个修订。"
]
},
{
"name": "new",
"tip": [
"将当前或给定的修订标记为新的, 表示良好的状态。"
]
},
{
"name": "old",
"tip": [
"将当前或给定的修订标记为旧的, 表示坏的状态。"
]
},
{
"name": "replay",
"tip": [
"重新播放二分查找日志。"
]
},
{
"name": "reset",
"tip": [
"完成二分查找并返回给定的分支。"
]
},
{
"name": "run",
"tip": [
"运行评估脚本。"
]
},
{
"name": "skip",
"tip": [
"选择附近的提交。"
]
},
{
"name": "start",
"tip": [
"重置二分查找状态并开始新的二分查找。"
]
},
{
"name": "terms",
"tip": [
"显示用于旧和新提交(默认是 bad, good)的术语。"
],
"next": [
{
"name": "--term-good",
"tip": [
"更改用于旧和新提交的术语(默认是 good)。"
]
},
{
"name": "--term-bad",
"tip": [
"更改用于旧和新提交的术语(默认是 bad)。"
]
}
]
},
{
"name": "view",
"tip": [
"在 gitk 中显示剩余的修订。"
]
},
{
"name": "visualize",
"tip": [
"在 gitk 中显示剩余的修订。"
]
}
]
},
{
"name": "bugreport",
"tip": [
"收集用户提交的错误报告所需的信息。"
],
"options": [
{
"name": "-o",
"alias": [
"--output-directory"
],
"tip": [
"U: -o|--output-directory <path>\n",
"指定 bugreport 文件的存放位置。"
],
"next": 0
},
{
"name": "-s",
"alias": [
"--suffix"
],
"tip": [
"U: -s|--suffix <suffix>\n",
"指定文件名的 strftime 格式后缀。"
],
"next": 0
}
]
},
{
"name": "bundle",
"tip": [
"通过归档移动对象和引用。"
],
"next": [
{
"name": "create",
"tip": [
"创建一个 bundle。"
]
},
{
"name": "list-heads",
"tip": [
"列出 bundle 中定义的引用。"
]
},
{
"name": "unbundle",
"tip": [
"将 bundle 解包到仓库中。"
]
},
{
"name": "verify",
"tip": [
"检查 bundle 是否有效且可以干净地应用。"
]
}
]
},
{
"name": "cat-file",
"tip": [
"显示仓库对象的正文或类型信息。"
]
},
{
"name": "check-attr",
"tip": [
"显示 gitattributes 信息。"
]
},
{
"name": "check-ignore",
"tip": [
"调试 .gitignore/.gitexclude 文件。"
]
},
{
"name": "check-mailmap",
"tip": [
"显示联系人的规范名称和电子邮件地址。"
],
"options": [
{
"name": "--stdin",
"tip": [
"从标准输入逐行读取一个联系人。"
]
}
]
},
{
"name": "checkout-index",
"tip": [
"将索引中的文件复制到工作目录。"
]
},
{
"name": "check-ref-format",
"tip": [
"确保引用名称格式正确。"
]
},
{
"name": "citool",
"tip": [
"Git 提交命令的图形化替代品。"
]
},
{
"name": "commit-graph",
"tip": [
"写入和验证 Git 提交图文件。"
]
},
{
"name": "commit-tree",
"tip": [
"创建一个新的提交对象。"
]
},
{
"name": "difftool",
"tip": [
"使用常见的 diff 工具显示更改。"
]
},
{
"name": "daemon",
"tip": [
"运行一个非常简单的 Git 仓库服务器。"
]
},
{
"name": "describe",
"tip": [
"显示从提交可达的最新标签。"
]
},
{
"name": "diff-files",
"tip": [
"比较工作目录和索引之间的文件。"
]
},
{
"name": "diff-index",
"tip": [
"比较索引和仓库中 blob 的内容和模式。"
]
},
{
"name": "diff-tree",
"tip": [
"比较通过两个树对象找到的 blob 的内容和模式。"
]
},
{
"name": "fast-export",
"tip": [
"数据导出器。"
]
},
{
"name": "fast-import",
"tip": [
"直接将信息导入 Git。"
]
},
{
"name": "fetch-pack",
"tip": [
"从另一个仓库接收缺失的对象。"
]
},
{
"name": "filter-branch",
"tip": [
"重写分支。"
]
},
{
"name": "fmt-merge-msg",
"tip": [
"生成合并提交消息。"
]
},
{
"name": "for-each-ref",
"tip": [
"显示每个引用的信息。"
]
},
{
"name": "for-each-repo",
"tip": [
"在一组仓库上运行 Git 命令。"
]
},
{
"name": "fsck",
"tip": [
"验证数据库中对象的连通性和有效性。"
]
},
{
"name": "get-tar-commit-id",
"tip": [
"从使用 git archive 创建的归档中提取提交 ID。"
]
},
{
"name": "gui",
"tip": [
"Git 的便携式图形界面。"
]
},
{
"name": "hash-object",
"tip": [
"计算对象 ID, 并(可选)从文件创建一个 blob。"
]
},
{
"name": "help",
"tip": [
"显示关于 Git 的帮助信息。"
]
},
{
"name": "http-backend",
"tip": [
"运行 Git 仓库的服务器端实现。"
]
},
{
"name": "http-fetch",
"tip": [
"通过 HTTP 从远程 Git 仓库下载。"
]
},
{
"name": "http-push",
"tip": [
"通过 HTTP/DAV 将对象推送到另一个仓库。"
]
},
{
"name": "imap-send",
"tip": [
"将一系列补丁发送到 IMAP 文件夹。"
]
},
{
"name": "index-pack",
"tip": [
"为现有的打包归档构建 pack 索引文件。"
]
},
{
"name": "instaweb",
"tip": [
"立即浏览工作仓库的 gitweb 界面。"
]
},
{
"name": "interpret-trailers",
"tip": [
"在提交消息中添加或解析结构化信息。"
]
},
{
"name": "ls-files",
"tip": [
"显示索引和工作目录中文件的信息。"
]
},
{
"name": "ls-remote",
"tip": [
"列出远程仓库中的引用。"
]
},
{
"name": "ls-tree",
"tip": [
"列出树对象的内容。"
]
},
{
"name": "mailinfo",
"tip": [
"从单个电子邮件消息中提取补丁和作者信息。"
]
},
{
"name": "mailsplit",
"tip": [
"将 mbox 文件分割成一系列文件。"
]
},
{
"name": "maintenance",
"tip": [
"运行任务以优化 Git 仓库数据。"
]
},
{
"name": "merge-base",
"tip": [
"尽可能便宜地找到共同祖先作为合并基础。"
]
},
{
"name": "merge-file",
"tip": [
"运行三路文件合并。"
]
},
{
"name": "merge-index",
"tip": [
"为需要合并的文件运行合并。"
]
},
{
"name": "merge-one-file",
"tip": [
"'git merge-index' 和标准辅助程序的常见核心, 用于与 git merge-index 一起使用。"
]
},
{
"name": "mergetool",
"tip": [
"运行合并冲突解决工具以解决合并冲突。"
]
},
{
"name": "merge-tree",
"tip": [
"显示三路合并而不修改索引。"
]
},
{
"name": "mktag",
"tip": [
"创建带有可选验证的标签对象。"
]
},
{
"name": "mktree",
"tip": [
"从 ls-tree 格式的文本构建树对象。"
]
},
{
"name": "multi-pack-index",
"tip": [
"写入和验证多包索引。"
]
},
{
"name": "notes",
"tip": [
"向对象添加或检查对象注释。"
],
"next": [
{
"name": "add",
"tip": [
"向一个对象添加注释。"
]
},
{
"name": "append",
"tip": [
"向现有对象追加注释。"
]
},
{
"name": "copy",
"tip": [
"从一个对象复制注释到另一个对象。"
]
},
{
"name": "edit",
"tip": [
"编辑现有对象的注释。"
]
},
{
"name": "get-ref",
"tip": [
"获取一个对象上注释的引用。"
]
},
{
"name": "list",
"tip": [
"列出一个对象上的注释。"
]
},
{
"name": "merge",
"tip": [
"将一个对象的注释合并到另一个对象。"
]
},
{
"name": "prune",
"tip": [
"从对象数据库中清理注释。"
]
},
{
"name": "remove",
"tip": [
"从一个对象中移除注释。"
]
},
{
"name": "show",
"tip": [
"显示一个对象上的注释。"
]
}
]
},
{
"name": "name-rev",
"tip": [
"为给定的引用找到符号名称。"
]
},
{
"name": "pack-objects",
"tip": [
"创建一个包含对象的打包归档。"
]
},
{
"name": "pack-redundant",
"tip": [
"查找冗余的打包文件。"
]
},
{
"name": "pack-refs",
"tip": [
"打包头和标签以提高仓库访问效率。"
]
},
{
"name": "parse-remote",
"tip": [
"帮助解析远程仓库访问参数的常规操作。"
]
},
{
"name": "patch-id",
"tip": [
"计算补丁的唯一 ID。"
]
},
{
"name": "prune-packed",
"tip": [
"移除已经包含在打包文件中的额外对象。"
]
},
{
"name": "quiltimport",
"tip": [
"应用一个 quilt 补丁集。"
]
},
{
"name": "rerere",
"tip": [
"重用已解决的冲突合并的记录。"
],
"next": [
{
"name": "clear",
"tip": [
"清除 rerere 数据库。"
]
},
{
"name": "forget",
"tip": [
"忘记已解决的冲突。"
]
},
{
"name": "diff",
"tip": [
"显示冲突差异。"
]
},
{
"name": "remaining",
"tip": [
"显示剩余的冲突。"
]
},
{
"name": "status",
"tip": [
"显示 rerere 缓存的状态。"
]
},
{
"name": "gc",
"tip": [
"对 rerere 数据库进行垃圾收集。"
]
}
]
},
{
"name": "restore",
"tip": [
"恢复工作树文件。"
]
},
{
"name": "range-diff",
"tip": [
"比较两个提交范围。"
]
},
{
"name": "read-tree",
"tip": [
"将树信息读取到索引中。"
]
},
{
"name": "receive-pack",
"tip": [
"接收推送到仓库的内容。"
]
},
{
"name": "repack",
"tip": [
"将仓库中的未打包对象打包。"
]
},
{
"name": "replace",
"tip": [
"创建、列出、删除用于替换对象的引用。"
]
},
{
"name": "request-pull",
"tip": [
"生成待处理更改的摘要。"
]
},
{
"name": "rev-list",
"tip": [
"按逆序时间列出提交对象。"
]
},
{
"name": "rev-parse",
"tip": [
"从 Git 中提取并整理参数和消息。"
]
},
{
"name": "send-email",
"tip": [
"将一系列补丁作为电子邮件发送。"
]
},
{
"name": "send-pack",
"tip": [
"使用 Git 协议将对象推送到另一个仓库。"
]
},
{
"name": "shell",
"tip": [
"受限制的登录 shell, 用于 Git 专用的 SSH 访问。"
]
},
{
"name": "show-index",
"tip": [
"显示打包归档索引。"
]
},
{
"name": "show-ref",
"tip": [
"列出本地仓库中的引用。"
]
},
{
"name": "sparse-checkout",
"tip": [
"初始化并修改稀疏检出。"
]
},
{
"name": "stripspace",
"tip": [
"过滤空行。"
]
},
{
"name": "submodule",
"tip": [
"初始化、更新或检查子模块。"
],
"next": [
{
"name": "add",
"tip": [
"向当前项目添加一个新的子模块。"
]
},
{
"name": "status",
"tip": [
"显示当前项目中子模块的状态。"
]
},
{
"name": "init",
"tip": [
"为当前项目初始化子模块。"
]
},
{
"name": "deinit",
"tip": [
"为当前项目取消初始化子模块。"
]
},
{
"name": "update",
"tip": [
"更新当前项目中的子模块。"
]
},
{
"name": "summary",
"tip": [
"显示子模块摘要状态。"
]
},
{
"name": "foreach",
"tip": [
"在子模块中运行命令。"
]
},
{
"name": "sync",
"tip": [
"同步子模块的远程 URL 配置。"
]
}
]
},
{
"name": "subtree",
"tip": [
"将仓库拆分为子模块并合并它们。"
]
},
{
"name": "svn",
"tip": [
"在 Subversion(SVN) 仓库和 Git 之间执行双向操作。"
],
"next": [
{
"name": "init",
"tip": [
"初始化一个与 Subversion(SVN) 集成的 Git 仓库。"
]
},
{
"name": "fetch",
"tip": [
"从 Subversion(SVN) 仓库拉取修订。"
]
},
{
"name": "clone",
"tip": [
"将 Subversion(SVN) 仓库克隆到 Git 中。"
]
},
{
"name": "rebase",
"tip": [
"将当前分支基于 SVN 提交进行重新合并。"
]
},
{
"name": "dcommit",
"tip": [
"将 Git 更改提交到 Subversion(SVN) 仓库。"
]
},
{
"name": "log",
"tip": [
"显示 Subversion(SVN) 提交日志。"
]
},
{
"name": "find-rev",
"tip": [
"找到与 Git 提交对应的 SVN 修订。"
]
},
{
"name": "set-tree",
"tip": [
"将当前 Git 树设置为与 SVN 检出等价。"
]
},
{
"name": "commit-diff",
"tip": [
"将 Git 差异中的更改提交到 Subversion(SVN)。"
]
},
{
"name": "info",
"tip": [
"显示 Subversion(SVN) 仓库的信息。"
]
},
{
"name": "create-ignore",
"tip": [
"从 Subversion(SVN) 属性创建忽略文件。"
]
},
{
"name": "propget",
"tip": [
"从仓库获取 Subversion(SVN) 属性。"
]
},
{
"name": "proplist",
"tip": [
"列出 Subversion(SVN) 属性。"
]
},
{
"name": "show-ignore",
"tip": [
"显示来自 Subversion(SVN) 属性的忽略模式。"
]
},
{
"name": "show-externals",
"tip": [
"显示 Subversion(SVN) 外部定义。"
]
},
{
"name": "branch",
"tip": [
"在 Subversion(SVN) 仓库中创建新分支。"
]
},
{
"name": "tag",
"tip": [
"在 Subversion(SVN) 仓库中创建新标签。"
]
},
{
"name": "blame",
"tip": [
"显示来自 Subversion(SVN) 仓库的 blame 注释。"
]
},
{
"name": "migrate",
"tip": [
"将 SVN 仓库迁移到 Git。"
]
},
{
"name": "mkdirs",
"tip": [
"在 Subversion(SVN) 仓库中创建目录。"
]
},
{
"name": "reset",
"tip": [
"将当前分支重置到最后拉取的状态。"
]
},
{
"name": "gc",
"tip": [
"对 Git-SVN 仓库执行维护操作。"
]
}
]
},
{
"name": "symbolic-ref",
"tip": [
"读取和修改符号引用。"
]
},
{
"name": "update-git-for-windows",
"tip": [
"更新 Git for Windows。"
]
},
{
"name": "unpack-file",
"tip": [
"创建一个临时文件, 包含 blob 内容。"
]
},
{
"name": "unpack-objects",
"tip": [
"从打包的仓库归档中解包对象。"
]
},
{
"name": "update-index",
"tip": [
"将文件内容注册到索引中。"
]
},
{
"name": "update-ref",
"tip": [
"安全地更新存储在引用中的对象名称。"
]
},
{
"name": "update-server-info",
"tip": [
"更新辅助信息文件, 帮助服务器。"
]
},
{
"name": "upload-archive",
"tip": [
"将归档发送回 git-archive。"
]
},
{
"name": "upload-pack",
"tip": [
"将打包的对象发送回 git fetch-pack。"
]
},
{
"name": "version",
"tip": [
"显示 Git 版本信息。"
]
},
{
"name": "var",
"tip": [
"显示 Git 逻辑变量。"
]
},
{
"name": "verify-commit",
"tip": [
"检查提交的 GPG 签名。"
]
},
{
"name": "verify-pack",
"tip": [
"验证打包的 Git 归档文件。"
]
},
{
"name": "verify-tag",
"tip": [
"检查标签的 GPG 签名。"
]
},
{
"name": "whatchanged",
"tip": [
"显示引入差异的提交日志。"
]
},
{
"name": "worktree",
"tip": [
"管理附加到同一个仓库的多个工作目录。"
],
"next": [
{
"name": "add",
"tip": [
"向当前仓库添加一个新的工作目录。"
]
},
{
"name": "list",
"tip": [
"列出当前仓库中的所有工作目录。"
]
},
{
"name": "lock",
"tip": [
"锁定当前工作目录, 防止并发访问。"
]
},
{
"name": "move",
"tip": [
"移动或重命名当前仓库中的工作目录。"
]
},
{
"name": "prune",
"tip": [
"从工作目录中删除空目录。"
]
},
{
"name": "remove",
"tip": [
"从当前仓库中删除工作目录。"
]
},
{
"name": "unlock",
"tip": [
"解锁当前工作目录, 允许并发访问。"
]
},
{
"name": "checkout",
"tip": [
"在工作目录中检出分支。"
]
},
{
"name": "reset",
"tip": [
"将工作目录重置到特定状态。"
]
},
{
"name": "merge",
"tip": [
"将分支合并到工作目录中。"
]
},
{
"name": "rebase",
"tip": [
"在工作目录中为另一个分支进行重新合并。"
]
},
{
"name": "status",
"tip": [
"显示工作目录的状态。"
]
}
]
}
],
"options": [
{
"name": "--version",
"alias": [
"-v"
],
"tip": [
"打印 git 程序的 Git 套件版本。\n",
"如果 --version 后接 --help 选项,则会优先展示 --version 选项的帮助信息。"
]
},
{
"name": "-C",
"tip": [
"U: -C <启动路径>\n",
"运行时就像 git 命令在 <启动路径> 而不是在当前工作目录下启动一样。\n",
"如果 <启动路径> 存在但为空,例如 -C \"\",那么命令就在当前工作目录启动。"
],
"next": 0
},
{
"name": "-c",
"tip": [
"U: -c <配置名>=<配置值>\n",
"向命令传递一个配置参数。给出的值将覆盖配置文件的值。\n",
"<配置名> 的格式应与 git config 列出的格式相同(子键由 . 分隔)。"
],
"next": 0
},
{
"name": "--exec-path",
"tip": [
"U: --exec-path[=<核心程序路径>]\n",
"安装 Git 核心程序的路径。\n",
"这也可以通过设置 GIT_EXEC_PATH 环境变量来控制。如果没有给出路径,git 会打印当前的设置,然后退出。"
],
"next": 0
},
{
"name": "--html-path",
"tip": [
"打印 Git 的 HTML 文档的安装路径(尾部不带斜杠)然后退出。"
]
},
{
"name": "--man-path",
"tip": [
"打印该版本 Git man page 的 manpath 之后退出。"
]
},
{
"name": "--info-path",
"tip": [
"打印记录该版本 Git 信息文件的安装路径并退出。"
]
},
{
"name": "-p",
"alias": [
"--paginate"
],
"tip": [
"如果标准输出是一个终端,则将所有的输出输出到 less(git 默认的分页器)(或者是 $PAGER 变量设置的值)中。\n",
"这会覆盖 pager.<cmd> 配置选项。"
]
},
{
"name": "-P",
"alias": [
"--no-pager"
],
"tip": [
"不使用分页器进行 Git 的输出。"
]
},
{
"name": "--git-dir=",
"tip": [
"U: --git-dir=<仓库路径>\n",
"设置仓库的路径(\".git\" 目录)。\n",
"这也可以通过设置 GIT_DIR 环境变量来控制。\n",
"<仓库路径> 可以是绝对路径或是当前工作目录的相对路径。"
],
"next": 0
},
{
"name": "--work-tree=",
"tip": [
"U: --work-tree=<工作区路径>\n",
"设置工作树的路径。<工作区路径> 可以是一个绝对路径或与当前工作目录相对的路径。\n",
"这也可以通过设置 GIT_WORK_TREE 环境变量和 core.worktree 配置变量来控制"
],
"next": 0
},
{
"name": "--namespace=",
"tip": [
"U: --namespace=<路径>\n",
"设置 Git 命名空间。\n",
"这相当于设置 GIT_NAMESPACE 环境变量。"
],
"next": 0
},
{
"name": "--bare",
"tip": [
"将该仓库视为裸仓库。\n",
"如果没有设置 GIT_DIR 环境变量,它将在当前工作目录生成仓库。"
]
},
{
"name": "--no-replace-objects",
"tip": [
"不要使用替换引用来替换 Git 对象。\n",
"这相当于导出任意值的 GIT_NO_REPLACE_OBJECTS 环境变量。"
]
},
{
"name": "--no-lazy-fetch",
"tip": [
"不要按需从承诺远程获取缺失的对象。\n",
"与 git cat-file -e <object> 一起使用很有用,以查看对象是否在本地可用。\n",
"这相当于将 GIT_NO_LAZY_FETCH 环境变量设置为 1。"
]
},
{
"name": "--no-optional-locks",
"tip": [
"禁止执行需要文件锁的可选操作。\n",
"这相当于将 GIT_OPTIONAL_LOCKS 设置为 0。"
]
},
{
"name": "--no-advice",
"tip": [
"禁止打印所有建议提示。"
]
},
{
"name": "--literal-pathspecs",
"tip": [
"按字面意思处理路径规格(即不使用通配符,不使用路径规范功能)。\n",
"这相当于将 GIT_LITERAL_PATHSPECS 环境变量设置为 1。"
]
},
{
"name": "--glob-pathspecs",
"tip": [
"在所有的路径规范中添加 \"glob\" 模式匹配功能。\n",
"这相当于将 GIT_GLOB_PATHSPECS 环境变量设置为 1。\n",
"可以用路径规范字符 \":(literal)\" 在单个路径规格上禁用 \"glob\" 模式匹配功能。"
]
},
{
"name": "--noglob-pathspecs",
"tip": [
"在所有路径规范中添加 \"literal\" 模式匹配功能。\n",
"这相当于将 GIT_NOGLOB_PATHSPECS 环境变量设为 1。\n",
"可以使用路径规范字符 \":(glob)\" 在单个路径规范上启用通配符模式匹配功能。"
]
},
{
"name": "--icase-pathspecs",
"tip": [
"在所有的路径规范中添加 \"icase\" 模式匹配功能。\n",
"这相当于将 GIT_ICASE_PATHSPECS 环境变量设置为 1。"
]
},
{
"name": "--list-cmds=",
"tip": [
"U: --list-cmds=<命令组>[,<命令组>…]\n",
"按组列出命令。\n",
"这是一个内部/实验性的选项,将来可能会改变或删除。"
],
"next": 0
},
{
"name": "--attr-source=",
"tip": [
"U: --attr-source=<树对象>\n",
"从 <树对象> 而不是工作区中读取 gitattributes。\n",
"这相当于设置 GIT_ATTR_SOURCE 环境变量。"
],
"next": 0
}
],
"common_options": [
{
"name": "--help",
"alias": [
"-h"
],
"tip": [
"U: --help|-h\n",
"打印概要和最常用的命令列表。\n",
"如果给出选项 --all 或 -a,则打印所有可用的命令。\n",
"如果给出某个命令,该选项将调出该命令的手册页面。"
]
}
],
"info": {
"completion_info": {
"url": "https://git-scm.com",
"description": [
"Git - 版本控制系统。"
]
}
},
"config": [
{
"name": "max_commit",
"value": 20,
"values": [
-1,
20
],
"tip": [
"{{",
"$_value = $PSCompletions.config.comp_config.git.max_commit;",
"if($_value -ne $null){ \"当前值: <@Magenta>$_value<@Blue>`n\" }",
"}}",
"通过 hooks 可以为当前项目解析的 commit 的最大数量,默认为 <@Magenta>20<@Blue>。\n",
"如果设置为 <@Magenta>-1<@Blue>, 会解析所有 commit,这对补全加载速度有影响。"
]
}
]
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )