翻译一下git的帮助文档,帮助记忆
首先在命令行输入
git --help
会得到下面的帮助信息
These are common Git commands used in various situations:
下面是各种情况下比较常见的git命令
start a working area (see also: git help tutorial)
开始工作(同样可以使用git help tutorial查看)
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
重置当前的HEAD为指定状态
rm Remove files from the working tree and from the index
从当前的工作树和索引中删除文件
examine the history and state (see also: git help revisions)
查看历史记录和状态(同样可以使用git help revisions查看)
bisect Use binary search to find the commit that introduced a bug
使用二分查找来锁定哪次提交引入的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
在另一个基本提示上重新应用提交 /*不是很懂 */
tag Create, list, delete or verify a tag object signed with GPG
新建、列出、删除或者确认一个使用GPG签名的标签对象 /*GPG是什么?*/
collaborate (see also: git help workflows)
协作(同样可以使用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.
使用git help -a 和git help -g 来列出可用的子命令和一些概念指导
See 'git help
使用 git help