Commit changes
此内容尚不支持你的语言。
Git is the version control system of Ferris IDEA; there is no other. The Commit tool window lists your changes, the gutter marks them line by line, and a commit runs your repository’s own hooks. Git from status to rebase, with hooks: Works. Changelists and the commit message history: Experimental.

ferris-idea drive screenshot · v1.6.0 release build, 2026-12-04Before you start
Section titled “Before you start”- A Git repository. Ferris IDEA finds the repository the project lies in, and nested ones up to four folders deep. To get one from a server, see Push, pull and clone.
- Git installed. Status, diff, log, blame, commit and switching branches run inside Ferris IDEA;
network operations, stash, rebase, cherry-pick, revert and reset call the
giton yourPATH. - Your name and e-mail in Git’s configuration (
git config --global user.nameanduser.email).
Review what changed
Section titled “Review what changed”Open the Commit tool window with ⌘0 (Alt0), or Git › Commit… (⌘K, CtrlK). It opens on the left, in place of the Project tree, with the focus in the message field.
- Changed files are listed under Changes, new files under Unversioned Files. Tracked files are ticked, unversioned ones are not.
- Files with unsaved changes in an editor are listed too and saved before the commit.
- Group By shows the files by Directory (⌃P) or Module (⌃M). F4 opens a file in the editor.
- The list follows changes made outside Ferris IDEA within two seconds.
Read the diff
Section titled “Read the diff”Double-click a file, or select it and press ⌘D (CtrlD). The diff opens as a tab with HEAD on the left and Working copy on the right, with syntax colours and changed words marked.
- U or the switch in the header changes to a unified view; the choice is remembered.
- F7 and ⇧F7 go to the next and previous change. At the last change of a file, F7 again goes to the next file.
- The » arrows take a HEAD block into your working copy. Only the working copy can be changed; HEAD, branches and stashes are read-only.
To compare any two files, select both in the Project tree and press ⌘D. To compare the current file with another branch, use Git › Compare with Branch… in the editor’s context menu.
Follow changes in the gutter
Section titled “Follow changes in the gutter”
ferris-idea drive screenshot · v1.6.0 release build, 2026-12-04While you edit, a bar in the gutter marks added and modified lines, and a mark shows where lines were deleted, against the last commit. Click a marker to open the change bar:
- the text as it was in HEAD (up to 12 lines),
- ↑ and ↓ to the previous and next change,
- Rollback (⌥⌘Z, CtrlAltZ) to restore those lines, as one undo step,
- Show Diff and Copy,
- a message field: type a message and press ↩ to commit only this change.
Commit
Section titled “Commit”- Tick the files to commit.
- Type the message. ⌃M in the field opens the last 25 messages of this project.
- Click Commit or press ⌘↩ (CtrlEnter). Commit and Push… commits and then opens the push dialog.
Only the ticked files go into the commit; other changes, staged or not, stay as they are.
Amend the last commit
Section titled “Amend the last commit”Turn on Amend last commit (⌃⌥M, AltM). It shows the last commit’s short id and subject and fills in its message. You can change only the message, or add files. The author is kept unless you set one.
Commit options
Section titled “Commit options”The gear button (⌃O) opens the options: Author, as Name <email>, and
Run Git hooks when the repository has hooks.
Run your Git hooks
Section titled “Run your Git hooks”A commit runs the repository’s pre-commit, prepare-commit-msg, commit-msg and post-commit
hooks, found the way Git finds them (core.hooksPath included) and run when the file is executable.
- Hooks see exactly the files of the commit. A formatter in
pre-committhat runsgit addchanges what is committed, as on the command line. - While hooks run, the button says Committing….
- A failing
pre-commit,prepare-commit-msgorcommit-msg, or one that runs longer than five minutes, stops the commit with “Commit blocked by pre-commit hook (exit 1)” and the last 200 lines of its output. Your message and ticks are kept. post-commitoutput is shown; its exit code does not undo the commit.- Untick Run Git hooks to skip
pre-commitandcommit-msgfor one commit, likegit commit --no-verify.prepare-commit-msgandpost-commitstill run.
The gutter’s one-change commit runs the hooks too. pre-push is run by Git itself when you push.
Roll back changes
Section titled “Roll back changes”Select files in the Commit tool window and click Rollback (⌥⌘Z). A strip in the window asks to confirm, with an option to also delete files you added (off by default). Unversioned files are never rolled back.
Group work in changelists
Section titled “Group work in changelists”Changelists split your changes into named groups that you commit separately; they exist only in Ferris IDEA, Git does not know them. With more than the default list Changes, the Commit tool window shows one group per list.
- New Changelist… and Delete Changelist are in the Changelists button of the toolbar.
- Move to Another Changelist… (⇧⌘M) moves the selected files.
- Set Active Changelist (⌃Space) chooses where new changes go.
- Edit Changelist… (F2) renames it.
A file belongs to one list as a whole; there are no partial changelists. Up to 100 lists, kept in
.ferris-idea/changelists.toml.
What is not there
Section titled “What is not there”No partial or hunk commits from the Commit window (the gutter commits one change), no sign-off or commit signing, no code analysis before a commit, no shelf, and no other version control system.
When it does not work
Section titled “When it does not work”- “Commit blocked by … hook”: read the hook’s output under the message, fix the problem and commit again, or untick Run Git hooks if you mean to skip it.
- A file is missing from the list: it is ignored by
.gitignore, or it lies in a nested repository deeper than four folders.
| Action | Shortcut |
|---|---|
| Commit | ⌘0Alt0 |
| Git › Commit | ⌘KCtrlK |
| Git › VCS Operations | ⌃VAlt` |
| MoveChangesView.Move | ⇧⌘MAltShiftM |
| Next diffNextDiff | F7F7 |
| Previous diffPreviousDiff | ⇧F7ShiftF7 |
| Rollback changed linesVcs.RollbackChangedLines | ⌥⌘ZCtrlAltZ |
| Show commit optionsChangesView.ShowCommitOptions | ⌃OCtrlO |
| Show diffDiff.ShowDiff | ⌘DCtrlD |
| Show message historyVcs.ShowMessageHistory | ⌃MCtrlM |
| Toggle amend commit modeVcs.ToggleAmendCommitMode | ⌃⌥MAltM |
| Vcs show next change markerVcsShowNextChangeMarker | ⌃⌥⇧↓ShiftCtrlAlt↓ |
| Vcs show prev change markerVcsShowPrevChangeMarker | ⌃⌥⇧↑ShiftCtrlAlt↑ |
⌃V (Alt`) opens the VCS Operations popup with the numbered entries Commit…, Commit File…, Rollback…, Show History, Annotate with Git Blame, Show Diff, Branches…, Push…, Stash Changes… and Unstash Changes….
For agents
Section titled “For agents”Reading status, diffs and history needs no right. git_commit and git_rollback need the right
vcs-write; git_commit runs the hooks unless the call says no_verify.
changelistsThe project's changelists: IDE-only named groups of changed files, one active, kept per user in.ferris-idea/changelists.toml(Git knows nothing of them).git_commitCommit the working-tree state of the given files on top of HEAD; other changes stay out.git_diffChanges of a workspace file against the last commit (HEAD): line markers (added, modified, deleted with 1-based line ranges) and unified hunks.git_line_changeOne change (gutter marker) of a workspace file against HEAD.git_rollbackRoll files back to HEAD, as Rollback in the Commit tool window: a file in HEAD gets its HEAD content in the working tree and the index (a file open in the window gets HEAD's text in its editor, which is saved, as one undo step: Undo gives back the earlier text, unsaved changes included, SPEC-0220 v5); a file added since HEAD leaves the index and stays on disk as unversioned, or is deleted with delete_added=true (refused while it has unsaved changes in an editor).git_statusGit status of the workspace's repository: per path the staged change (HEAD → index) and the unstaged change (index → working tree; untracked files as added).
No tool matches. Try fewer words, or .