1
1

More than 3 years have passed since last update.

AWS Cloud9 でGitクライアントを使う

Posted at

0. はじめに

AWS Cloud9 で GUIのGitクライアント( ungit )を設定する手順です。

1. ungitをインストールする

ungitの公式サイトの通り、npm でインストールします。

$ npm install -g ungit

2. ungitにポートを割り当てる

ユーザのホームディレクトリにungit用の設定ファイルを作ります。

$ touch ~/.ungitrc

設定ファイルにungitに割り当てたい任意のポートとIPアドレスを書いておきます。

{
  "port": 8080,
  "ungitBindIp": "0.0.0.0"
}

ちなみに、AWS Cloud9では、ターミナル上のパス形式の文字列を選択すると、OPENからエディタが開きます。
kyato-9mfjx.gif

3. ポートを開放する

AWS Cloud9 の [View Details] からIDEの詳細画面を開きます。

スクリーンショット 2020-06-20 2.24.05.png

詳細画面の [Security groups] のリンクを開きます。

スクリーンショット 2020-06-20 2.24.50.png

インバウンドルールを編集して、.ungitrc に書いたポートを開放します。

スクリーンショット 2020-06-20 2.28.41.png

3. ungitを起動する

gitリポジトリがあるディレクトリで、ターミナルからungitを起動します。

$ ungit

ターミナルに表示されるリンクをクリックしてOPENを選択すると、ungitの画面が表示されます。

スクリーンショット 2020-06-20 2.40.05.png

ungitの使い方は公式サイトを参考にしてください。

4. 最後に

AWS Cloud9で利用できる他のGit クライアントがあればぜひ教えてください。

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