windows上安裝使用git-extras

來源:互聯網
上載者:User

標籤:git   git-extras   cygwin   

安裝

首先確保安裝了git命令列程式。

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

windows上需要安裝cygwin,然後安裝gcc即可。
從如下地址下載cygwin的安裝,安裝時需要選擇gcc,如果安裝的慢,可以使用Proxy 伺服器:

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 (顯示變更資訊)

windows上安裝使用git-extras

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.