close

首先到

https://code.google.com/p/git-core/downloads/list

 

下載先的source壓縮檔案,或者到

 

https://github.com/git/git

 

使用git clone下載最新的repository。

使用cygwin 1.7.23手動編譯,有一些工具要安裝,像是autoconf, gettext, asciidoc之類,沒有安裝的話要補齊才能完成make。接下來輸入:

 


make configure
./configure --prefix=/usr/local
make all
make install install-doc install-html

由於install-doc install-html應該會有問題,不過失敗也沒差,git help subtree還是看得到說明。

手動編譯完成後,輸入:

$ git --version

git version 1.8.4

應該會出現新的版本,接著進入R:\git-1.8.4\contrib\subtree目錄,輸入

make
make install
make install-doc

或者

make prefix=<some dir>
make prefix=<some dir> install
make prefix=<some dir> install-doc

就可將subtree指令安裝好了,但doc那個還是會有問題就是。

 

 

2013/09/19補充:

如果使用git clone http/https時,出現「fatal: Unable to find remote helper for 'https'」,先使用cygwin安裝工具檢查是否有安裝curl, curl-dev,名稱是libcurl, libcurl-dev。安裝好curl後,重新make就可以使用http/https下載了。

arrow
arrow
    全站熱搜

    bagatelles 發表在 痞客邦 留言(0) 人氣()