git 命令增强扩展工具 - git-extras

原文发表于:https://www.rails365.net/articles/git-ming-ling-zeng-qiang-kuo-zhan-gong-ju-git

增强 git 的命令,可以用更简单的方式实现有趣的功能。

https://github.com/tj/git-extras

安装:https://github.com/tj/git-extras/blob/master/Installation.md#mac-os-x-with-homebrew

可以使用 brew 来安装。

$ brew install git-extras

演示:

没安装 git-extras 前:

$ git init
$ git add .
$ git commit -m "initial commit"

安装 git-extras 后:

仅一条命令:

$ git setup

还有 git summary

$ git summary                                                                                                                                                       git:(master|…

 project  : rails365
 repo age : 2 years, 8 months
 active   : 239 days
 commits  : 814
 files    : 442
 authors  :
   320  suifeng            39.3%
   316  hfpp2012 yinsigan  38.8%
    88  suifeng2012        10.8%
    88  yinsigan           10.8%
     2  hfpp2012           0.2%

ga . 相当于 git add .

gst 相当于 git status

gca 相当于 git commit -m "..."

git changelog 生成 History.md

git ignore 等等。

所有的命令参考这里:https://github.com/tj/git-extras/blob/master/Commands.md

视频介绍:https://vimeo.com/45506445

完结。

发布了27 篇原创文章 · 获赞 0 · 访问量 1583

猜你喜欢

转载自blog.csdn.net/weixin_39637597/article/details/80066582
今日推荐