我将操作系统从Windows更改为Linux。在Windows中,我没有安装gitflow的任何问题。我是Linux的新手,并坚持安装gitflow。
我用过
wget --no-check-certificate -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh
并尝试了
wget --no-check-certificate -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo bash
但得到了这个错误:
woppi@woppi-ThinkCentre-M80:~$ wget --no-check-certificate -q -O -
https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh
[sudo] password for woppi:
### gitflow no-make installer ###
Installing git-flow to /usr/local/bin
Cloning repo from GitHub to gitflow
Cloning into gitflow...
error: Failed connect to github.com:80; Connection refused while accessing
http://github.com/nvie/gitflow.git/info/refs
fatal: HTTP request failed
Updating submodules
cd: 78: can't cd to gitflow
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
install: cannot stat `gitflow/git-flow': No such file or directory
install: cannot stat `gitflow/git-flow-init': No such file or directory
install: cannot stat `gitflow/git-flow-feature': No such file or directory
install: cannot stat `gitflow/git-flow-hotfix': No such file or directory
install: cannot stat `gitflow/git-flow-release': No such file or directory
install: cannot stat `gitflow/git-flow-support': No such file or directory
install: cannot stat `gitflow/git-flow-version': No such file or directory
install: cannot stat `gitflow/gitflow-common': No such file or directory
install: cannot stat `gitflow/gitflow-shFlags': No such file or directory
我遵循了github的git安装以及nvie的gitflow安装。我无法弄清楚我错过了什么。
我感谢任何帮助!谢谢! :)
答案 0 :(得分:1)
我分叉了git-flow并添加了bug修复和功能。除此之外,我更改了上述说明的URL结构,因为我注意到github已经更改了它的URL。
wget --no-check-certificate -q -O - https://raw.github.com/petervanderdoes/gitflow/develop/contrib/gitflow-installer.sh | sudo bash
答案 1 :(得分:0)
重要的一点是:
error: Failed connect to github.com:80; Connection refused while accessing
http://github.com/nvie/gitflow.git/info/refs
尝试做:
wget http://github.com/nvie/gitflow.git/info/refs
并修正出现的任何错误。