2013-04-12 125 views
3

嘗試了幾次,包括加入之前的下載並手動獲取子模塊。有沒有人有解決方法?git flow安裝程序無法在Mac OS X上安裝shFlags 10.8.3

SilverFir-2:SRC mike$ sudo ./git-flow-installer 
### gitflow no-make installer ### 
Installing git-flow to /usr/local/bin 
Cloning repo from GitHub to gitflow 
Cloning into 'gitflow'... 
remote: Counting objects: 1407, done. 
remote: Compressing objects: 100% (602/602), done. 
remote: Total 1407 (delta 893), reused 1285 (delta 790) 
Receiving objects: 100% (1407/1407), 358.18 KiB | 121 KiB/s, done. 
Resolving deltas: 100% (893/893), done. 
Updating submodules 
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags' 
Cloning into 'shFlags'... 
fatal: unable to connect to github.com: 
github.com[0: 204.232.175.90]: errno=Operation timed out 

Clone of 'git://github.com/nvie/shFlags.git' into submodule path 'shFlags' failed 
install: gitflow/git-flow -> /usr/local/bin/git-flow 
install: gitflow/git-flow-init -> /usr/local/bin/git-flow-init 
install: gitflow/git-flow-feature -> /usr/local/bin/git-flow-feature 
install: gitflow/git-flow-hotfix -> /usr/local/bin/git-flow-hotfix 
install: gitflow/git-flow-release -> /usr/local/bin/git-flow-release 
install: gitflow/git-flow-support -> /usr/local/bin/git-flow-support 
install: gitflow/git-flow-version -> /usr/local/bin/git-flow-version 
install: gitflow/gitflow-common -> /usr/local/bin/gitflow-common 
install: gitflow/gitflow-shFlags: No such file or directory 
SilverFir-2:SRC mike$ 

回答

12

看起來它可能只是一個暫時的連接問題(雖然這是不尋常的,你是能夠手動獲取子模塊,但是劇本不能這樣做)。免費安裝程序似乎在我的Mac OS 10.8.3系統上正常工作。該補充較少的安裝程序沒有做多少,你可以運行自己的步驟來安裝它 -

git clone https://github.com/nvie/gitflow.git 
cd gitflow 
git submodule init 
git submodule update 
sudo make install 
+8

做'git的子模塊之前init'我編輯了'.gitmodules'從'git的改變shflags位置:/ /'到'https://'並且爲我工作。 – rogchap

+0

太棒了!我提出了一個請求來解決它。 – mik01aj

+0

Ran git config --global url。「https://」.insteadOf git://在git子模塊初始化之前 –