Skip to content
Reference

Where GitAegis stores things

The application-support directory, refs/aegis/, and what is written inside your repository.

One directory

Everything GitAegis writes for itself lives under a single application-support directory. Nothing is scattered across your home folder, and nothing GitAegis manages is written inside .git/ except the recovery refs described further down.

macOS
~/Library/Application Support/dev.gitaegis.app/aegis/
├── app.db                  SQLite: catalogue, journal, capsule index, flight timeline, settings
├── app.db-wal              write-ahead log
├── app.db-shm              shared-memory index
├── app.backup-v<N>         one per schema migration, never deleted by the application
├── capsules/
│   └── <repository-id>/
│       ├── cap-<id>/       standard capsule
│       ├── chk-<id>/       light checkpoint
│       └── .exports/       Doctor export text files
├── exports/
│   └── support-bundle-<timestamp>/
└── logs/                   never created in this edition
One repository per directory under capsules/, one directory per capsule inside it.

app.db, and what is in it

What the local database holds.
ContentNotes
Repository catalogueThe display name and the absolute path of every repository you added.
Operation journalEvery operation GitAegis performed, with its plan, status, affected refs and rollback information. It is kept forever. It is the recovery log.
Capsule indexMetadata only. The capsule contents are files on disk, below.
Flight Recorder timelineEvents per repository, swept to a budget (200 by default, configurable between 20 and 5000). Pinned events, and events linked to a pinned capsule or an unfinished operation, are exempt.
Credential metadataWhich helper a repository uses, and whether an entry exists. No secret, token or password is stored here. See Credentials and SSH.
Settings, policies, change setsYour preferences, the local policy rules you wrote, and change-set rows.

The database is SQLite in WAL mode, which is why the -wal and -shm sidecars sit beside it; they belong to the database and are deleted with it.

capsules/: the directory that holds your code

This is the most sensitive thing GitAegis writes. A capsule contains verbatim copies of repository content, not a summary of it:

<capsule-id>/
HEAD                    raw .git/HEAD byte copy
refs/                   recursive copy of .git/refs
packed-refs             if present
reflogs/                recursive copy of .git/logs: commit subjects, author identities
index.original          binary .git/index, byte for byte
index-metadata.json     whether an index was present, and whether it verified
staged.patch            git diff --cached --binary: the full text of your staged changes
unstaged.patch          git diff --binary: the full text of your unstaged changes
operation-state/        MERGE_HEAD, CHERRY_PICK_HEAD, REVERT_HEAD, BISECT_LOG, ORIG_HEAD, …
config.sanitized        git config --local --list, credential-bearing lines stripped
manifest.json           id, repository, label, HEAD ref and oid, Git version, retention expiry
checksums.json          SHA-256 for every entry above
untracked-files.tar     standard capsules only: uncompressed archive of untracked files
repository.bundle       standard capsules only: git bundle create --all
A chk- prefix marks a light checkpoint; a cap- prefix marks a standard capsule. A light checkpoint omits the last two entries.

If you copy your home directory, back it up, or hand the Mac to someone else, these directories go with it.

Retention. Capsules are stamped with a 90-day expiry, and shortly after each launch GitAegis sweeps the ones that have passed it, on a background thread rather than on the launch path. Two exemptions: a pinned capsule never expires, and a capsule belonging to an operation that never finished is kept regardless. Directories left behind by a crash (capsule folders with no database row) are reclaimed by the same pass. So this tree holds up to 90 days of repository content, and holds it indefinitely if the application is never launched again.

Exports, and logs

Two directories are written only when you ask for them. Neither is sent anywhere; each is a file on your disk and what happens to it next is your decision.

Written on request
~/Library/Application Support/dev.gitaegis.app/aegis/exports/support-bundle-<timestamp>/
~/Library/Application Support/dev.gitaegis.app/aegis/capsules/<repository-id>/.exports/doctor-<plain|technical>-<timestamp>.txt
Support bundles and Doctor exports. Read Support bundles before sending either to anyone.

Log files: none. A log writer exists in the code, but nothing instantiates it to write and no tracing subscriber is installed in the shipped application, so those events are discarded and the logs/ directory is never created. Launch GitAegis from a terminal and you will see output on stderr; that is your terminal, not a file GitAegis wrote.

Inside your repositories

GitAegis writes recovery refs under refs/aegis/ before the three operations that can otherwise strand commits. These are ordinary Git refs in your repository, not in GitAegis’s directory, and GitAegis never garbage-collects them.

Recovery refs GitAegis writes into a repository.
RefWritten before
refs/aegis/recover/<branch>-pre-force-pusha force push
refs/aegis/recover/pre-merge-aborta merge-abort repair
refs/aegis/recover/pre-rebase-aborta rebase-abort repair
zsh
cd /path/to/repository
git for-each-ref --format='%(refname) %(objectname:short) %(contents:subject)' refs/aegis/
These refs keep commits alive that Git would otherwise be free to collect. Deleting them can make lost work unrecoverable.

Three other things can appear inside a repository:

  • Restoring from a capsule writes to .git/HEAD, .git/index, the operation marker files, and (for untracked files) into your working tree. That is what a restore is, and it is always preceded by a fresh capsule of the state you are leaving.
  • Setting a commit identity through GitAegis writes user.name and user.email to the repository’s .git/config, or to ~/.gitconfig if you chose global scope. Nothing else in your Git configuration is touched.
  • .aegis-conflict-<uuid>.tmp files, from an interrupted conflict resolution. They are normally renamed into place immediately.

Temporary files, and what macOS creates

Under your system temp directory ($TMPDIR, typically /var/folders/…/T/):

  • aegis-index-snapshot-<uuid>/: a per-operation index snapshot, created with mode 0700 and removed when the operation completes.
  • aegis-rollback-<uuid>.patch: written and deleted during a rollback. It contains repository diff content and would survive a crash mid-rollback, so it is worth checking after one.

macOS creates its own per-application directories for any app that uses a WebKit view, keyed on the bundle identifier dev.gitaegis.app: under ~/Library/Caches, ~/Library/WebKit, ~/Library/HTTPStorages, ~/Library/Saved Application State, and a preferences plist. These are the operating system’s, not GitAegis’s; Uninstalling lists them so a removal can be complete.

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.