3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GCP に git インストール の巻

Posted at

#目的
git を導入して、開発を高速化する

#目標
まっさらの環境へgit を導入する
git のver を表示する

#作業

これを入力するんだ
sudo yum -y install gcc wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker autoconf

wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz

tar vfx git-2.9.5.tar.gz

cd git-2.9.5

make configure

./configure --prefix=/usr

make all

sudo make install

最後にバージョンが出力されるか確認する
git --version

git version 2.9.5

お疲れ様です。

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?