Uninstalling
Removing the application, removing capsule data, and what stays behind in your repositories.
Read this before you delete anything
Dragging GitAegis to the Trash removes the application. It does not remove what GitAegis wrote to your disk, and that matters more than it usually does, because recovery capsules contain verbatim copies of your repository content: the full text of your staged and unstaged changes, an archive of your untracked files, and a complete git bundle of the object database and every ref.
Once the capsules are gone, so is the recovery they provide. If there is any chance you still need it, read Recovering your work first.
1. Remove the application
rm -rf /Applications/GitAegis.app
2. See what is there before you delete it
du -sh ~/Library/Application\ Support/dev.gitaegis.appfind ~/Library/Application\ Support/dev.gitaegis.app -maxdepth 3
3. Remove GitAegis's own data
Everything GitAegis writes lives under one directory, so one command covers it:
rm -rf ~/Library/Application\ Support/dev.gitaegis.app
| Path | Contents |
|---|---|
…/aegis/app.db | Repository catalogue (including the absolute path of every repository you added), operation journal, capsule index, Flight Recorder timeline, settings, credential metadata, policies, change sets. No secret, token or password is stored here. |
…/aegis/app.db-wal, …/aegis/app.db-shm | SQLite write-ahead log and shared-memory index. They go with the database. |
…/aegis/app.backup-v<N> | A copy of the whole database taken before each schema migration. Never deleted by the application, and there can be several. |
…/aegis/capsules/ | The capsule tree. This is the directory that matters. |
…/aegis/exports/ | Support bundles, if you generated any. |
Removing only the capsules
To reclaim the space and keep the catalogue, the journal and your settings, delete the capsule tree alone:
rm -rf ~/Library/Application\ Support/dev.gitaegis.app/aegis/capsules
Capsules carry a 90-day expiry stamp, and shortly after each launch GitAegis deletes the ones that have passed it. Pinned capsules, and capsules belonging to an operation that never finished, are kept regardless, so the tree holds up to 90 days of repository content, and holds it indefinitely if the application is never launched again.
Two things inside that tree are yours to delete and are not touched by the retention pass, because a scratch directory can belong to an operation that is still running: .exports/ (Doctor export text files) and .tmp-<uuid>/ (scratch directories that self-clean on success but survive a crash).
4. The directories macOS created
macOS (not GitAegis) creates these for any application that uses a WebKit view. They are keyed on the bundle identifier. Which of them exist depends on how you used the app; delete whichever are present.
rm -rf ~/Library/Caches/dev.gitaegis.apprm -rf ~/Library/WebKit/dev.gitaegis.apprm -rf ~/Library/HTTPStorages/dev.gitaegis.apprm -rf ~/Library/Saved\ Application\ State/dev.gitaegis.app.savedStaterm -f ~/Library/Preferences/dev.gitaegis.app.plist
5. Temporary files
rm -rf "$TMPDIR"/aegis-index-snapshot-*rm -f "$TMPDIR"/aegis-rollback-*.patch
6. Remove GitAegis-owned Keychain entries
Before uninstalling, disconnect local PAT provider connections and sign out of your GitAegis account. Those actions remove GitAegis’s provider-token and account-session entries. If the app cannot open, remove only Keychain entries named cloud/session, entries beginning with aegis/provider/connection/, and legacy entries beginning with aegis/provider/.
A PAT may remain valid at GitHub or GitLab after its local copy is removed, so revoke it at the provider when global invalidation is required. Git transport credentials remain owned by your SSH setup or Git credential helper and are unaffected; do not delete them unless you intend to.
7. What GitAegis left inside your repositories
Removing GitAegis does not touch your repositories, and nothing here needs to be removed for the uninstall to be complete. But GitAegis writes refs under refs/aegis/ in repositories it operated on and never garbage-collects them, so they remain. List them per repository:
cd /path/to/repositorygit for-each-ref --format='%(refname) %(objectname:short) %(contents:subject)' refs/aegis/
These refs keep commits alive that Git would otherwise be free to collect, which is the point of them. Deleting them can make lost work unrecoverable. Review the output above before removing any:
git for-each-ref --format='%(refname)' refs/aegis/ | xargs -n1 git update-ref -d
If you set a commit identity through GitAegis, that wrote user.name and user.email into the repository’s .git/config or into ~/.gitconfig. It is ordinary Git configuration and stays where it is.
Verify
ls -d ~/Library/Application\ Support/dev.gitaegis.app 2>/dev/nullls -d ~/Library/Caches/dev.gitaegis.app 2>/dev/nullls -d ~/Library/WebKit/dev.gitaegis.app 2>/dev/nullls ~/Library/Preferences/dev.gitaegis.app.plist 2>/dev/nullls -d /Applications/GitAegis.app 2>/dev/null
If you find a GitAegis file in a location this page does not list, that is a defect in this page. Tell us at support@gitaegis.com.