$ git –help 得到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:
这些是各种情况下常用的Git命令:
start a working area (see also: git help tutorial)
启动工作区域(参见git帮助教程)
clone Clone a repository into a new directory
将存储库复制到新目录中
init Create an empty Git repository or reinitialize an existing one
创建一个空的Git存储库或重新初始化一个现有的存储库
work on the current change (see also: git help everyday)
处理当前的更改(参见:git help everyday)
add Add file contents to the index
添加文件内容到索引
mv Move or rename a file, a directory, or a symlink
移动或重命名一个文件,一个目录,或符号链接
reset Reset current HEAD to the specified state
重置当前磁头到指定状态
rm Remove files from the working tree and from the index
从工作树和索引中删除文件
examine the history and state (see also: git help revisions)
检查历史和状态(参见:git帮助修订)
bisect Use binary search to find the commit that introduced a bug
使用二分查找查找引入错误的提交
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
分支列表、创建或删除分支
checkout Switch branches or restore working tree files
签出开关分支或恢复工作树文件
commit Record changes to the repository
将记录更改提交到存储库
diff Show changes between commits, commit and working tree, etc
显示提交、提交和工作树等之间的更改
merge Join two or more development histories together
合并将两个或多个开发历史合并在一起
rebase Reapply commits on top of another base tip
Reapply在另一个基础技巧上提交
tag Create, list, delete or verify a tag object signed with GPG
标记创建、列表、删除或验证与GPG签名的标记对象
collaborate (see also: git help workflows)
协作(参见:git帮助工作流)
fetch Download objects and refs from another repository
从另一个存储库获取下载对象和refs
pull Fetch from and integrate with another repository or a local branch
从另一个存储库或本地分支中提取并集成
push Update remote refs along with associated objects
推送更新远程参考连同相关的对象