0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【git-flow】Amazon Linux 2023 の環境で git-flow をインストールする方法【git://を使わない方法】

Last updated at Posted at 2024-06-03

はじめに

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に置き換える。

最後に

かんたんでしたね

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?