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 1 year has passed since last update.

IntelliJでGitのステージングエリアを表示する方法

1
Last updated at Posted at 2025-08-04

はじめに

私は普段の開発にIntelliJを利用しています。
Gitも連携していて利用しているのですが、ステージングエリアが表示されていなかったので、表示方法をメモ代わりにまとめました。

環境

OS:Windows 11 Pro
IntelliJのバージョン:IntelliJ IDEA 2023.3.6 (Community Edition)

設定変更前

デフォルトの設定ではステージングエリアは表示されません。

Git表示エリア
image.png

コミットを実行すると、内部的にはステージングエリアへの追加とコミットをまとめて実行してくれます。(チェックボックスのON/OFFでステージングへの追加/削除を切り替えているわけではありません。)

設定変更

以下からGitの設定画面を表示します。
File > Settings > Cersion Control > Git

image.png

Enable staging areaのチェックボックスにチェックを入れてOKを押します。

image.png

Git表示エリアにStaged(ステージング済み)、Unstaged(未ステージング)のエリアが表示されています。

ステージングエリアへの追加/削除

現状SampleController.javaとSampleService.javaへの修正は未ステージングとなっています。
試しにSampleController.javaをステージングエリアに追加します

image.png

スクショではわかりずらいですが、対象のファイルにカーソルを当てると、ファイルの右側に+ボタンが表示されます。
+ボタンを押下することでステージングエリアに追加されます。
image.png

この状態でコミットすると、SampleController.javaのみがコミットされます。
逆にファイルの右側に表示されている-ボタンを押下することでステージングエリアから削除され、未ステージングエリアに戻ります。

まとめ

少しニッチですが、ステージングエリアがない状態でGitを触るのに違和感がある人は是非設定してみてください。
ご質問等ありましたら是非ともコメントよろしくお願いします。

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?