Skip to content
Everyday Git

Committing

Author and message, amend with its safety checks, and signing pass-through to your own configuration.

The composer

Subject with a character counter, an optional description, seven conventional type chips (feat, fix, chore, refactor, docs, test, perf), an amend checkbox, and a commit button. ⌘↵ commits from the message field.

Your author identity comes from the identity profile bound to the repository. Signing is a checkbox that passes through to your own Git configuration: see below.

The commit request refuses drift

A commit carries proof of the state you were looking at when you composed it. The core re-checks each value under the repository lease before anything is journalled, and refuses the commit if any of them moved.

  • expectedIndexTreeOid: the tree the staged index produced in the snapshot you reviewed.
  • expectedStagedPaths: the staged paths from that same snapshot, compared as a sorted list.
  • expectedHeadRef and expectedHeadOid: where HEAD pointed, and at what.
  • requestId: an idempotency key. Reusing it replays the original outcome and never dispatches a second commit.

Those values also appear as preconditions on the plan, so a stale composer is visible before you confirm rather than as a surprise afterwards.

How the commit is actually made

A journalled commit is not git commit. It is two plumbing steps against the exact tree you reviewed.

planned commands
git commit-tree --no-gpg-sign <tree> -p <parent> -m <subject>
git update-ref -m "aegis commit" refs/heads/main <new-oid>
Building the object from an immutable tree means the live index cannot shift underneath the commit you approved.

This has one consequence worth stating plainly: repository hooks do not run for commits made in GitAegis. commit-tree does not invoke them. If executable hooks exist in .git/hooks, the plan tells you how many and says they will not run; commits you make in your terminal are untouched by this.

Signing

The commit object is built with -S when you asked for a signature and --no-gpg-sign when you did not. Being explicit in both directions is deliberate: a repository that sets commit.gpgSign=true must not silently sign a commit you asked to leave unsigned. GitAegis does not manage keys, hold a passphrase, or reimplement signing: your Git and your signing configuration do the work. The same applies to signed annotated tags, where the plan warns that Git will reject the tag and create no ref if the signing identity or its agent is unavailable.

Amend, and when it stops being routine

Amend is planned as its own operation type, never as a commit with a flag. Before it runs, the plan checks every locally known remote-tracking ref for one that already contains the tip commit, not only the configured upstream, because a branch pushed without -u is still published history. If it finds one, the operation is escalated and the plan names the ref.

Commit operations, their risk classification and what is captured before they run
OperationRiskCaptured first
CommitsafeNothing
Commit onto a new branchcautionLight checkpoint: refs, HEAD, index, patches
Amend an unpublished tipsafeNothing
Amend a published tipcautionLight checkpoint: refs, HEAD, index, patches

A safe commit has no app-driven undo

Nothing is captured for a plain commit, and the plan says so rather than implying a rollback exists: manual Git recovery is still available through the reflog, but the Activity centre has no checkpoint to restore. The escalated cases are the ones that get one.

30-day trial · No card required

A recovery capsule before every risky Git operation.

You see the exact commands before they run, and the operation is refused if the capsule cannot be written.

Requires Git 2.38.0 or newer, already installed.

Every risky operation, in this order

  1. Previewthe exact commands, shown before anything runs
  2. Capsulerefs, index, staged and working changes, untracked files, operation state: written to disk first
  3. Executethe commands as shown, or not at all
  4. Journalplan, commands, capsule id, outcome
No capsule, no operation. Restore plans, previews, and takes its own capsule.