现在的位置: 首页 > 综合 > 正文

git 常用命令

2018年02月18日 ⁄ 综合 ⁄ 共 1452字 ⁄ 字号 评论关闭

   add         Add file contents to the index(向repository添加文件)
   bisect     Find by binary search the change that introduced a bug(使用二分搜索查找引入bug的change)
   branch     List, create, or delete branches(列举,打印, 或者删除分支)
   checkout   Checkout a branch or paths to the working tree(校验到工作tree的一个分支或者路径)
   clone      Clone a repository into a new directory(将一个repository克隆到一个新文件夹中)
   commit     Record changes to the repository(将change提交到repository中)
   diff       Show changes between commits, commit and working tree, etc(比较不同commit, commit 和 工作tree的不同指出,)
   fetch      Download objects and refs from another repository(从另外一个repository中下载objects,refs)
   grep       Print lines matching a pattern(打印与一个模式相匹配的行)
   init       Create an empty Git repository or reinitialize an existing one(创建一个空的Git repository 或者 重新初始化一个已经存在的repository)
   log        Show commit logs(列出提交日志)
   merge       Join two or more development histories together(将两个或者更多的版本合并)
   mv         Move or rename a file, a directory, or a symlink(移动或者重新命名一个文件,文件夹或者一个链接)
   pull       Fetch from and integrate with another repository or a local branch(从另外一个仓库或者本地分支抓取,并与当前分支合并)
   push       Update remote refs along with associated objects(用相关联的objects更新远程refs)
   rebase     Forward-port local commits to the updated upstream head(这条不是很懂,有人理解,请告诉我,在下面评论就行)
   reset      Reset current HEAD to the specified state(将当前HEAD重设置到指定的状态)
   rm         Remove files from the working tree and from the index(从working tree 或者 索引中删除 文件)
   show       Show various types of objects(列出各种类型的objects)
   status     Show the working tree status(显示working tree的状态)
   tag         Create, list, delete or verify a tag object signed with GPG(创建,列出,删除或者验证一个用GPG签名的object)

抱歉!评论已关闭.