git --help(中文翻译)

翻译一下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 <command>' or 'git help <concept>' to read about a specific subcommand or concept.

使用 git help <command> 或者 git help <concept> 来查看关于指定的命令或者概念的说明
 

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值