1
3

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 3 years have passed since last update.

CentOS 7にGit2をインストール

Posted at

なぜGit2

普段Visual Studio Code Remote - SSHを使って、CentOS内のファイルを編集します。
yum install gitコマンドでgitをインストールし、VSCodeから接続すると、下記のような警告が表示されます。

これを解決するのは、Git2をインストールします。

インストールコマンド

sudo -E yum -y remove git
sudo -E yum -y install https://centos7.iuscommunity.org/ius-release.rpm
sudo -E yum -y install git2u yum-utils
sudo -E yum-config-manager --disable ius

バージョン確認

[user@okcoder-k8s-m1 ~]$ git --version
git version 2.16.6

参考資料

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?