In this chapterFind the checks and fixes for identity, SSH and commit problems.
| Tool | What it does | Where |
|---|---|---|
| Doctor | Checks that remotes match the account’s host and, with --ssh, that login works. Prints the fix. |
gittrail doctor [--ssh] |
| Fix automatically | Picks the account matching each remote and switches HTTPS remotes to SSH. | Repositories banner · gittrail fix |
| Push check | A pre-push hook that blocks pushes made with the wrong account, in any Git tool. | Repo panel switch · gittrail guard --on |
| Account checked before every push | The app refuses a push from the wrong account and explains why. | Automatic |
| Fix wrong authors | Unpushed commits made as someone else can be rewritten as the right account (with Undo). | Header chip in the workspace |
| .mailmap | Show old names and emails as the right ones in history. | Wrong-author chip › Map old names |
| Secret scanning | Likely tokens, private keys and .env files stop a commit until you decide. |
Changes › Commit |
| Check and repair | Git’s integrity check (fsck) in plain words, stale locks, broken index, lost commits. |
More › Check and repair… |
Need another approach?Find a fix →