Error map

fatal: invalid reference: branch fatal: invalid reference: feature/login

Git · layer 7, Build & delivery

Open the full error page →

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.

fatal: invalid reference: branch — fatal: invalid reference: feature/login (Git)fatal: inva…couldn't find remote ref (checkout) — GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout) (CI/CD)couldn't find remot…couldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…pathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…hint: Using 'master' as the name for the initial branch — hint: Using 'master' as the name for the initial branch. This default branch name is subject to change. (Git)hint: Using 'master…remote: error: refusing to delete the current branch — ! [remote rejected] main (deletion of the current branch prohibited) (Git)remote: error: refu…error: pathspec 'feature' did not match any file(s) known to git (remote-only branch) — error: pathspec 'feature/login' did not match any file(s) known to git (Git)error: pathspec 'fe…warning: You appear to have cloned an empty repository — warning: You appear to have cloned an empty repository. (Git)warning: You appear…error: The branch is not fully merged — 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)error: The branch i…error: Cannot delete branch checked out at — error: Cannot delete branch 'main' checked out at '/home/user/repo' (Git)error: Cannot delet…fatal: branch is already checked out at (worktree) — fatal: 'feature/x' is already checked out at '/home/user/repo-wt' (Git)fatal: branch is al…Bitbucket: Branch permissions prevent push — remote: Branch permissions: You are not allowed to push to branch main (Git)Bitbucket: Branch p…fatal: bad revision 'origin/main..HEAD' — fatal: bad revision 'origin/dev..HEAD' (Git)fatal: bad revision…Resource not accessible by integration — GitHub Actions: Error: Resource not accessible by integration (403) (CI/CD)Resource not access…The process '/usr/bin/git' failed with exit code 128 — GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128 (CI/CD)The process '/usr/b…Input required and not supplied — GitHub Actions: Error: Input required and not supplied: token (CI/CD)Input required and …non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwarddetached HEAD — You are in 'detached HEAD' state. (Git)detached HEADsrc refspec — error: src refspec main does not match any (Git)src refspecFilename too long — error: unable to create file x: Filename too long (Windows) (Git)Filename too longno upstream branch — fatal: The current branch x has no upstream branch. (Git)no upstream branchbranch exists — fatal: a branch named 'x' already exists (Git)branch existsfatal: your current branch 'main' does not have any commits yet — fatal: your current branch 'main' does not have any commits yet (Git)fatal: your current…warning: refname 'v1' is ambiguous — warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters (Git)warning: refname 'v…Your branch is based on 'origin/x', but the upstream is gone — Your branch is based on 'origin/feature', but the upstream is gone. (Git)Your branch is base…non-bare push — ! [remote rejected] main -> main (branch is currently checked out) (Git)non-bare pushfatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …! [rejected] v1.0 -> v1.0 (already exists) — ! [rejected] v1.0.0 -> v1.0.0 (already exists) error: failed to push some refs (Git)! [rejected] v1.0 -…Rebase replays too many commits / unrelated histories — fatal: refusing to merge unrelated histories (Git)Rebase replays too …! [rejected] tag -> tag (would clobber existing tag) — ! [rejected] v1.0 -> v1.0 (would clobber existing tag) (Git)! [rejected] tag ->…error: invalid path 'aux.c' / unable to create file on Windows — error: invalid path 'docs/aux.md' fatal: unable to checkout working tree (Git)error: invalid path…cherry-pick: The previous cherry-pick is now empty — The previous cherry-pick is now empty, possibly due to conflict resolution. (Git)cherry-pick: The pr…fatal: destination path already exists and is not an empty directory — fatal: destination path 'repo' already exists and is not an empty directory. (Git)fatal: destination …fatal: unable to access: OpenSSL SSL_read: Connection was reset — fatal: unable to access 'https://github.com/org/repo.git/': OpenSSL SSL_read: Connection was reset, errno 10054 (Git)fatal: unable to ac…Lost commits after git reset --hard (recover with reflog) — HEAD is now at a1b2c3d Old commit (Git)Lost commits after …git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…error: Entry 'file' not uptodate. Cannot merge. — error: Entry 'app.js' not uptodate. Cannot merge. fatal: Merge with strategy recursive failed. (Git)error: Entry 'file'…CONFLICT (modify/delete): file deleted in one branch and modified in the other — CONFLICT (modify/delete): app.js deleted in HEAD and modified in feature. Version feature of app.js left in tree. (Git)CONFLICT (modify/de…fatal: 'x y' is not a valid branch name — fatal: 'feature/my branch' is not a valid branch name. (Git)fatal: 'x y' is not…fatal: Branch rename failed — fatal: Branch rename failed (Git)fatal: Branch renam…index.lock exists — fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository (Git)index.lock existsfatal: '../wt' already exists — fatal: '../repo-wt' already exists (Git)fatal: '../wt' alre…actions/checkout: shallow clone, git history missing — fatal: couldn't find remote ref refs/heads/x (fetch-depth: 1) (Git)actions/checkout: s…0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersRPC failed — error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly (Git)RPC failedfatal: could not open .git-blame-ignore-revs — fatal: invalid object name 'abc...' in ignore-revs-file (Git)fatal: could not op…fatal: 'origin' does not appear / No such remote 'origin' — error: No such remote 'origin' (Git)fatal: 'origin' doe…warning: redirecting to https://github.com/new-org/repo.git/ — remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git (Git)warning: redirectin…

Directly related (12)

couldn't find remote ref (checkout)CI/CD

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…

couldn't find remote refGit

fatal: couldn't find remote ref main

The branch you tried to pull/fetch doesn’t exist on the remote.

pathspec did not matchGit

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 branchGit

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: error: refusing to delete the current branchGit

! [remote rejected] main (deletion of the current branch prohibited)

The server won't delete its default branch.

error: pathspec 'feature' did not match any file(s) known to git (remote-only branch)Git

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 repositoryGit

warning: You appear to have cloned an empty repository.

The remote has no commits yet.

error: The branch is not fully mergedGit

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 checked out atGit

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: branch is already checked out at (worktree)Git

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.

Bitbucket: Branch permissions prevent pushGit

remote: Branch permissions: You are not allowed to push to branch main

Bitbucket branch restrictions reject your direct push.

fatal: bad revision 'origin/main..HEAD'Git

fatal: bad revision 'origin/dev..HEAD'

Git doesn't know one side of the revision range.

Two steps away (36)

Resource not accessible by integrationCI/CD

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).

The process '/usr/bin/git' failed with exit code 128CI/CD

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…

Input required and not suppliedCI/CD

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…

non-fast-forwardGit

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.

detached HEADGit

You are in 'detached HEAD' state.

HEAD points at a commit instead of a branch, so new commits won’t belong to any branch.

src refspecGit

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.

Filename too longGit

error: unable to create file x: Filename too long (Windows)

Windows’ 260-character path limit blocked Git from creating a file.

no upstream branchGit

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.

branch existsGit

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 yetGit

fatal: your current branch 'main' does not have any commits yet

Commands needing history ran in a brand-new repo.

warning: refname 'v1' is ambiguousGit

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/x', but the upstream is goneGit

Your branch is based on 'origin/feature', but the upstream is gone.

The remote branch was deleted (usually after merging a PR).

non-bare pushGit

! [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 already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

! [rejected] v1.0 -> v1.0 (already exists)Git

! [rejected] v1.0.0 -> v1.0.0 (already exists) error: failed to push some refs

The remote already has that tag pointing elsewhere.

Rebase replays too many commits / unrelated historiesGit

fatal: refusing to merge unrelated histories

The two branches have no common ancestor, so Git refuses to merge them.

! [rejected] tag -> tag (would clobber existing tag)Git

! [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 'aux.c' / unable to create file on WindowsGit

error: invalid path 'docs/aux.md' fatal: unable to checkout working tree

The repo has file names Windows can't create.

cherry-pick: The previous cherry-pick is now emptyGit

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 already exists and is not an empty directoryGit

fatal: destination path 'repo' already exists and is not an empty directory.

The target folder exists and has files.

fatal: unable to access: OpenSSL SSL_read: Connection was resetGit

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.

Lost commits after git reset --hard (recover with reflog)Git

HEAD is now at a1b2c3d Old commit

A hard reset moved the branch back and your newer commits look gone.

git merge -X theirs vs ours (swapped during rebase)Git

(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 'file' not uptodate. Cannot merge.Git

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): file deleted in one branch and modified in the otherGit

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: 'x y' is not a valid branch nameGit

fatal: 'feature/my branch' is not a valid branch name.

The branch name contains characters Git forbids.

fatal: Branch rename failedGit

fatal: Branch rename failed

Git couldn't rename the branch.

index.lock existsGit

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: '../wt' already existsGit

fatal: '../repo-wt' already exists

The target folder for the worktree exists.

actions/checkout: shallow clone, git history missingGit

fatal: couldn't find remote ref refs/heads/x (fetch-depth: 1)

The default checkout is shallow, so tools needing history fail.

0x80070005Windows

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…

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

RPC failedGit

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: could not open .git-blame-ignore-revsGit

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.

fatal: 'origin' does not appear / No such remote 'origin'Git

error: No such remote 'origin'

The repository has no remote named origin.

warning: redirecting to https://github.com/new-org/repo.git/Git

remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git

The repository was renamed or transferred.