はじめに
AmazonLinux2023で git-flow
を使うぞ。。。あれ、yum install
でいれられない。。。
なら、ダウンロードして。。。
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
Cloning into '/usr/local/src/gitflow/shFlags'...
なんか、いつまでもおわらないぞ。。。
なら .gitmodule
を変更して。。。
Cloning into '/usr/local/src/gitflow/shFlags'...
fatal: unable to connect to github.com:
github.com[0: 20.27.177.113]: errno=Connection timed out
なんかエラーになるぞ。。。
fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/usr/local/src/gitflow/shFlags' failed
Failed to clone 'shFlags'. Retry scheduled
Cloning into '/usr/local/src/gitflow/shFlags'...
なんかエラーになるぞ。。。
という方向け。
GitプロトコルがSecurityGroupなどで通っていないことが原因のことが多いです。
この手順を実行する前に、どのポートが利用できるのか、環境を確認することをおすすめします。
やり方
git://
で始まるURLをすべて https://
で始まるURLに置き換えます。
sudo yum update
sudo yum install make git
sudo su -
cd /usr/local/src
git clone https://github.com/nvie/gitflow.git
cd gitflow
git config --global url."https://".insteadOf git://
git submodule init
git submodule update
make install
原因
git://
プロトコルとおらないから。
解決方法
git://
プロトコルでインターネットにアクセスできるようにする。
or
git://
で始まるURLをすべて https://
で始まるURLに置き換える。
最後に
かんたんでしたね