Git IntelliJ Integration
In this page:
IntelliJ Git Integration
JetBrains IntelliJ IDEA features built-in Git integration. When you open a Git project, IntelliJ automatically indexes changes, highlights modified files in blue, and untracked files in green inside the Project panel.
Example: IntelliJ Git Integration
# Open a Git project; IntelliJ highlights modified files in blue and untracked files in green
Committing and Pushing
Use the Commit tool window (Cmd+K on macOS, Ctrl+K on Windows) to stage files and write messages. Use the Push dialog (Cmd+Shift+K or Ctrl+Shift+K) to send commits to your remote server.
Example: Committing and Pushing
# Cmd+K (Ctrl+K) opens Commit; Cmd+Shift+K (Ctrl+Shift+K) opens Push
Managing Branches in IntelliJ
The branch indicator in IntelliJ's status bar opens a popup listing local and remote branches together — from there you can check one out, create a new one from your current commit, or merge another branch into your current one, all without touching the terminal.
Example: Managing Branches in IntelliJ
# Click the branch indicator in the status bar to checkout, create, or merge a branch
Viewing Local History
IntelliJ features an independent Local History safety net. If you delete code before committing, right-click the file and select Local History to restore previous, unsaved file states easily.
Example: Viewing Local History
# Right-click a file, select Local History, to restore a previous unsaved state
Visual Git Log
The Git tab at the bottom of the editor window displays a complete visual log. It lists all branches, commit authors, hashes, and detailed file modification structures inside a clean interactive grid.
Example: Visual Git Log
# Open the Git tab to see branches, authors, hashes, and file modifications in a grid
Chapter Quiz — Complete all 8 topics to unlock
0/8 topics done
Complete these topics first: