13

windows上安装使用git-extras

 3 years ago
source link: https://blog.csdn.net/KimmKing/article/details/43858225
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

windows上安装使用git-extras

首先确保安装了git命令行程序。

http://git-scm.com/download/

windows上需要安装cygwin,然后安装gcc即可。
从如下地址下载cygwin的安装,安装时需要选择gcc,如果安装的慢,可以使用代理服务器:

http://cygwin.com/setup-x86_64.exe

进入cygwin:

git clone https://github.com/tj/git-extras
cd git-extras
make install

然后把cygwin的两个bin目录加入到系统环境变量的path:

C:\cygwin\usr\local\bin;C:\cygwin\bin

还需要新建一个环境变量

LANG=zh_CN.UTF-8

命令列表:
https://github.com/tj/git-extras/wiki/Commands

增强的几个常用功能

  • git summary(显示项目的统计信息)
  • git effort(统计文件的修改信息)
  • git count(统计提交信息)
  • git alias (命令别名)
  • git ignore (添加忽略)
  • git info (类型svn info,显示repo和git配置)
  • git fork (fork)
  • git release (release)
  • git local-commits (#本地提交信息)
  • git pr (切换到pr)
  • git root (返回root目录)
  • git delta (显示变更信息)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK