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

More than 3 years have passed since last update.

Cent OS8のコマンドラインでGitを使う為の準備

Last updated at Posted at 2020-02-08

参考

https://xn--o9j8h1c9hb5756dt0ua226amc1a.com/?p=1434
https://qiita.com/kusanoiskuzuno/items/c323446f2707f9950ebb

Gitの準備

  • Gitのインストール
$ sudo yum install git
  • Gitのバージョンを確認
$ git version
  • テストリポジトリを作成
$ mkdir /home/ユーザー名/testrepo.git
  • リポジトリを初期化

cdコマンドで先程作成した/home/ユーザー名/testrepo.gitまで移動して、

$ git init

を実行する。

Visual Studio Codeの準備

  • rpmをインポート設定
$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
  • アップデートをチェックして、yumでインストール
$ sudo yum check-update
$ sudo yum -y install code

その後、Visual Studio Codeを日本語化。
codeコマンドでVisual Studio Codeを起動する。

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