Error map
fatal: invalid reference: branch fatal: invalid reference: feature/login
Git · layer 7, Build & delivery
Centre: this error. First ring: errors it is linked with (12). 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 (12)
GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout)
`actions/checkout` could not fetch the branch, tag or SHA it was asked for — it was deleted, never pushed, or is not reachable wi…
fatal: couldn't find remote ref main
The branch you tried to pull/fetch doesn’t exist on the remote.
error: pathspec 'x' did not match any file(s) known to git
Git couldn’t find the file or branch name you referenced.
hint: Using 'master' as the name for the initial branch. This default branch name is subject to change.
A harmless hint: Git's default initial branch name is configurable.
! [remote rejected] main (deletion of the current branch prohibited)
The server won't delete its default branch.
error: pathspec 'feature/login' did not match any file(s) known to git
The branch exists only on the remote and isn't fetched or named correctly.
warning: You appear to have cloned an empty repository.
The remote has no commits yet.
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.
error: Cannot delete branch 'main' checked out at '/home/user/repo'
You can't delete a branch that is checked out in this or another worktree.
fatal: 'feature/x' is already checked out at '/home/user/repo-wt'
A branch can be checked out in only one worktree at a time.
remote: Branch permissions: You are not allowed to push to branch main
Bitbucket branch restrictions reject your direct push.
fatal: bad revision 'origin/dev..HEAD'
Git doesn't know one side of the revision range.
Two steps away (36)
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).
GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
A git command inside the workflow failed — usually authentication to a private repo/submodule, a missing ref, or pushing without…
GitHub Actions: Error: Input required and not supplied: token
An action needs an input (token, ssh-key, api-key…) and the `with:` value is empty or missing — often because the secret does not…
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: src refspec main does not match any
You pushed a branch name that doesn’t exist locally — usually no commits yet, or the branch is called master not main.
error: unable to create file x: Filename too long (Windows)
Windows’ 260-character path limit blocked Git from creating a file.
fatal: The current branch x has no upstream branch.
The local branch isn’t linked to a remote branch yet, so a bare git push doesn’t know where to go.
fatal: a branch named 'x' already exists
You tried to create a branch whose name is already taken locally.
fatal: your current branch 'main' does not have any commits yet
Commands needing history ran in a brand-new repo.
warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters
A branch and a tag share a name.
Your branch is based on 'origin/feature', but the upstream is gone.
The remote branch was deleted (usually after merging a PR).
! [remote rejected] main -> main (branch is currently checked out)
You pushed to a non-bare repository whose working tree has that branch checked out.
fatal: tag 'v1.0.0' already exists
A tag with that name exists already.
! [rejected] v1.0.0 -> v1.0.0 (already exists) error: failed to push some refs
The remote already has that tag pointing elsewhere.
fatal: refusing to merge unrelated histories
The two branches have no common ancestor, so Git refuses to merge them.
! [rejected] v1.0 -> v1.0 (would clobber existing tag)
A fetched tag would replace one you already have with a different target.
error: invalid path 'docs/aux.md' fatal: unable to checkout working tree
The repo has file names Windows can't create.
The previous cherry-pick is now empty, possibly due to conflict resolution.
The commit you picked has no changes left, because the same changes already exist on your branch.
fatal: destination path 'repo' already exists and is not an empty directory.
The target folder exists and has files.
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.
HEAD is now at a1b2c3d Old commit
A hard reset moved the branch back and your newer commits look gone.
(behavior) "ours" and "theirs" are reversed in git rebase
During a rebase Git's "ours" is the branch you rebase onto, and "theirs" is your own commit.
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.
CONFLICT (modify/delete): app.js deleted in HEAD and modified in feature. Version feature of app.js left in tree.
One branch deleted a file while the other changed it.
fatal: 'feature/my branch' is not a valid branch name.
The branch name contains characters Git forbids.
fatal: Branch rename failed
Git couldn't rename the branch.
fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository
A lock file from another (or crashed) Git process blocks this command.
fatal: '../repo-wt' already exists
The target folder for the worktree exists.
fatal: couldn't find remote ref refs/heads/x (fetch-depth: 1)
The default checkout is shallow, so tools needing history fail.
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…
user is not in the sudoers file. This incident will be reported.
Your account isn’t allowed to use sudo.
error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly
A large HTTPS push/clone broke mid-transfer — size limits, proxies or flaky HTTP/2.
fatal: invalid object name 'abc...' in ignore-revs-file
git blame can't read the ignore-revs file or a hash in it is invalid.
error: No such remote 'origin'
The repository has no remote named origin.
remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git
The repository was renamed or transferred.
Map another error
Popular: ERR_HTTP2_PROTOCOL_ERROR5004004031064ORA-00933Critical errorTypeError