Error map
stash@{0} is not a valid reference fatal: log for 'stash' only has 1 entries / stash@{3} is not a valid reference
Git · layer 7, Build & delivery
Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (9)
fatal: Not a valid object name: 'main'.
The branch or commit doesn’t exist yet — typically in a new repo before the first commit.
The stash entry is kept in case you need it again.
Applying your stash conflicted with the working tree.
No local changes to save
`git stash` found nothing tracked to stash.
HEAD is now at a1b2c3d Old commit
A hard reset moved the branch back and your newer commits look gone.
error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc
A dropped commit was removed because it was unreachable and expired.
error: Entry 'app.js' not uptodate. Cannot merge. fatal: Merge with strategy recursive failed.
A file with uncommitted changes would be touched by the merge.
fatal: reference repository '/mirror/repo.git' is not a local repository.
`--reference` needs a local path.
error: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied
Git can't write reflog or ref files.
(behavior) new files disappeared after stash or clean
Untracked files were stashed or deleted.
Two steps away (27)
Git: ! [rejected] … (fetch first) — error: failed to push some refs
The remote branch has commits you don’t have locally, so Git refuses to overwrite them. Pull (merge or rebase) first, then push.
You are in 'detached HEAD' state.
HEAD points at a commit instead of a branch, so new commits won’t belong to any branch.
error: pathspec 'x' did not match any file(s) known to git
Git couldn’t find the file or branch name you referenced.
Git: CONFLICT (content): Merge conflict in file — Automatic merge failed
Both branches changed the same lines; Git needs you to choose the final content before completing the merge/rebase.
error: Your local changes to the following files would be overwritten by merge
git pull/merge would modify files you’ve changed but not committed.
error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue
The picked commit touches lines that differ on your branch.
On branch main nothing to commit, working tree clean
Git sees no changes to commit.
Would remove build/ Would remove .env.local
`git clean -n` lists what clean would delete.
Your branch and 'origin/main' have diverged, and have 2 and 3 different commits each, respectively.
Both your local branch and the remote have new commits.
Connection reset during the TLS handshake (SNI filtering or DPI blocking the ClientHello)
The TCP connection works, but it's reset right after the ClientHello, which points to a firewall filtering by SNI.
error: The branch 'feature/x' is not fully merged. If you are sure you want to delete it, run 'git branch -D feature/x'.
Git refuses to delete a branch whose commits aren't merged elsewhere.
fatal: unable to access 'https://github.com/org/repo.git/': OpenSSL SSL_read: Connection was reset, errno 10054
The TLS connection to the Git host was dropped mid-transfer.
error: object file .git/objects/x is empty / fatal: loose object is corrupt
The local Git object database is corrupted — usually after a crash, disk full or sync tool interference.
Automatic Repair couldn't repair your PC — Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt
Windows failed to boot repeatedly and Startup Repair couldn’t fix it; SrtTrail.txt records the root cause it found.
error: inflate: data stream error (incorrect header check) error: unable to unpack header
A Git object file is damaged.
error: bad signature 0x00000000 fatal: index file corrupt
The staging area file `.git/index` is damaged.
error: Entry 'x' is a directory in one branch and a file in another
The index has conflicting entries for one path.
fatal: cannot do a partial commit during a merge.
You tried to commit selected files in the middle of a merge.
fatal: not a git repository (or any of the parent directories): .git
You ran a Git command outside a Git working tree.
fatal: destination path 'repo' already exists and is not an empty directory.
The target folder exists and has files.
fatal: unable to access 'https://host/repo.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Git's TLS library (GnuTLS) failed the handshake with the server.
Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied
Windows refused an operation because the account or process lacks permission — seen in Windows Update, installers, Task Scheduler…
WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for 'key.pem' are too open
SSH refuses to use a private key that other users can read; it must be readable only by you (chmod 600).
GitHub Actions: Error: Resource not accessible by integration (403)
The workflow’s GITHUB_TOKEN doesn’t have the permission needed for that API call (comment, push, create release, write packages).
fatal: pack has bad object at offset 12345: inflate returned -3
A packfile is damaged.
error: could not write index / Cannot save the current index state
Git couldn't write the index while stashing.
HEAD is now at a1b2c3d (uncommitted changes lost)
`--hard` discards uncommitted edits.
Map another error
Popular: ERR_HTTP2_PROTOCOL_ERROR5004004031064ORA-00933Critical errorTypeError