Troubleshooting
Git not found, authentication failures, Safe Mode, requires-intervention, and slow large repositories.

Every error carries a code
GitAegis errors are structured, not prose. Each one has a code of the form AEG-<FAMILY>-<NNNN> and four fields: a summary, what happened, what remains safe, and a recommended action. The third field is the one to read first in an emergency. It tells you whether anything was changed.
Git’s own stderr is reduced to the line that reports the problem rather than pasted in whole, and it is credential-redacted first. The full text is not lost: it is what the Flight Recorder and a support bundle carry. When you write to support, quote the code.
GitAegis will not get past the Git screen
This is the most common report, and it is almost always Git. GitAegis requires Git 2.38.0 or newer, does not bundle one, and blocks at launch if it cannot find one, AEG-GIT-RUNTIME-0001 when nothing was found, AEG-GIT-RUNTIME-0008 when a runtime was found but rejected, with the reason.
- Install Git the way System requirements describes. On macOS 12, Apple’s Command Line Tools cannot reach the floor and Homebrew is the only route.
- If your Mac already has a Git that is too old, the Command Line Tools may reinstall that same version.
brew install gitis the surer route. - GitAegis chooses its runtime once, at startup. After installing or upgrading Git, quit GitAegis and open it again. The Check again button on the blocking screen tells you whether the Git on this Mac has changed; acting on that still needs a restart.
- GitAegis does not look at your
PATH. A Git installed somewhere else entirely will not be found, however well it works in your shell.
A remote operation fails instead of asking for a password
That is deliberate. The Git subprocess is started with GIT_TERMINAL_PROMPT=0, so Git cannot open a credential prompt on a terminal that is not there. An operation that would have hung invisibly fails with a message instead.
The fix is outside GitAegis:
- For SSH remotes, confirm your agent is running and holds the key. GitAegis passes
SSH_AUTH_SOCKthrough, so ifssh -Tto your host works in a terminal, the push will too. - For HTTPS remotes, confirm your credential helper can answer without prompting.
- A push refused because the remote moved is a different thing:
AEG-REMOTE-0412means the lease basis recorded when the push was planned no longer matches the live tip. Nothing was pushed. Fetch, re-run the preview, and execute the new plan.
The repository is in Safe Mode
Safe Mode is not a setting you turned on. It is a state GitAegis derives from Doctor’s evidence, and it means one thing: the repository’s index or HEAD cannot be trusted. It is set when reading .git/index failed, the index signature or checksum is wrong, the index is truncated, or reading HEAD failed.
While it holds, every mutating control is locked and every Git command GitAegis spawns for that repository carries core.hooksPath=/dev/null. Safe Mode is a symptom, not a fix: run a fresh scan from Doctor, read the findings, and apply the recommended repair. Every repair takes a mandatory capsule first, and there is no override for that. Safe Mode covers the state in full.
An operation ended as requires-intervention
This status means GitAegis stopped rather than guessed. It is used in two situations, and neither is a silent partial success:
- After a crash or a force quit. On every launch the journal reconciles transactions that were still in flight (planned, checkpointing, simulating, executing or validating) to requires-intervention, and records a crash event on the timeline. The operation did not finish; what its capsule holds is still there.
- When a postcondition failed. A restore verifies integrity first, takes a fresh capsule of the state you are leaving, and checks afterwards that
HEADresolves and that status parses. If any check fails, the operation ends here with the exact list rather than reporting success.
Open the entry in the Operation Journal: it carries the plan, the affected refs with their before and after oids, and the rollback information. After a crash is the runbook.
macOS says a folder holds no repository
Two different errors look alike here, and GitAegis keeps them apart on purpose. AEG-REPO-DISCOVERY-0003 means no Git directory was found at or above the folder. AEG-REPO-DISCOVERY-0006 means macOS refused to let GitAegis read it, so whether it holds a repository is not knowable from inside the process.
For the second, grant access under System Settings → Privacy & Security → Files and Folders, or choose a folder outside the protected locations. A discovery scan that was turned away says which folder it could not read and withholds the “no repositories found” line, because a scan that was not allowed to look has no standing to report an empty folder.
A large repository is slow, or a command is stopped
Every Git invocation is bounded. Most commands have 30 seconds; network-facing work such as fetch has 300. Output is capped at 8 MiB on stdout and 1 MiB on stderr.
| Code | Meaning and what to do |
|---|---|
AEG-GIT-RUNTIME-0004 | The command did not finish in time and was stopped. Nothing was deleted. Retry; if it persists, check the repository for lock files or extreme size. |
AEG-GIT-RUNTIME-0005 | The command produced more output than the cap allows. The repository is unchanged. Narrow the operation (fewer paths, fewer commits) and retry. |
AEG-GIT-RUNTIME-0003 | Git itself failed. The message carries Git’s own diagnostic line. A common cause is another process holding .git/index.lock. |
GitAegis keeps its read paths off the real index lock where it can, GIT_OPTIONAL_LOCKS=0 and a private index snapshot, so a status read does not contend with a mutation. Mutations still take the lock, and still fail while another process owns it.
If none of that fits
If work is at risk right now, Recovering your work is faster than email. Otherwise write to support@gitaegis.com with: what you were doing and what happened instead; whether any work is currently at risk; the exact error text including its code; your macOS version, your processor, and the GitAegis version from the About dialog; and, only if you have read Support bundles and are satisfied with what it contains, a support bundle.