Git
JetBrains Air has no single Git panel. Git operations sit next to the work they belong to: the Git menu for repository-wide commands, the branch selector for branches, the Changes tool for commits, and the History tool for the commit log.
Where to find Git operations
Surface | What you do there |
|---|---|
Sync, push, pull, and fetch. Show the commit history, work with the current file, and clone a repository. | |
See the branch that is currently checked out, check out another one, create a branch, and browse remote branches. | |
Review changed files, choose what goes into the next commit, commit, and revert changes. | |
Browse commits and task snapshots, view diffs, pull and push, and roll back to a commit. | |
Run Git actions on one file from its right-click menu, such as file history or reverting its changes. |
You can also run any Git action by name: press ⌘ ⇧ K and type git.
Git menu options
To see the list of options, choose Git in the main menu.
Pull the remote changes into the current branch, then push your local commits | |
⌃ G ⌃ P | Push local changes to the remote tracked branch |
⌃ G ⌃ U | Get changes into the current branch from the remote tracked branch |
Download changes from the remote repository | |
Open the History tool on the currently checked out branch | |
⌃ G ⌃ H | Show the history of the file that is open in the editor |
⌃ G ⌃ A | Open the gutter and show what revision and author last modified each line of a file |
Clone a repository from Git |
Git settings
To customize Git-related project settings, press ⌘ , to open Settings, then open Git section.
Global settings
The Global settings section contains general Git settings.
Check the necessary options to switch them on:
Show changes in the gutter: indicate the lines with the local changes.
Auto-fetch repositories: fetch changes from the remote repository in the set time interval.
Show confirmation on push: enable notifications that inform whether push was successful.
Show confirmation on revert: enable notification that informs whether revert was successful.