git --help

git 命令的帮助信息。

→ git --help
usage: git [--version] [--help] [-C <path>] [-c name=value]
          [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
          [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
          [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
          <command> [<args>]

开启工作区

(查看:git help tutorial)

  clone      把一个仓库克隆到一个新的目录下
  init       创建空白 Git 仓库,或重新初始化一个 Git 仓库

处理当前修改

(查看:git help everyday)

  add        把文件内容添加到索引
  mv         移动或重命名文件,目录,或替身
  reset      把当前 HEAD 重置到某个特定的状态
  rm         把文件从工作树与索引中删除掉

检查历史与状态

(查看:git help revisions)

  bisect     使用 binary 搜索,找到引发 bug 的提交
  grep       输出匹配某种模式的内容
  log        显示提交日志
  show       Show various types of objects
  status     显示工作树的状态

扩展,标记,修改历史

  branch     列出,创建,或删除分支
  checkout   切换分支或恢复工作树文件
  commit     把修改保存到仓库
  diff       显示区别
  merge      把两个或以上的开发历史合并到一块儿
  rebase     Reapply commits on top of another base tip
  tag        创建,列出,删除,检查标签

协作

(查看: git help workflows)

  fetch      从其它仓库那儿下载对象与 refs
  pull       从远程那拉取并合并到本地
  push       把提交推送到远程

全部

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

results matching ""

    No results matching ""