Git 错误
浏览所有 50 个 Git 错误 错误代码,包含原因、修复方法和示例。
50
错误总数
41
错误
3
警告
3
致命
3
信息
50条结果
Git 错误错误
fatal: not a git repositoryfatal: not a git repository
当前目录不在任何 Git 仓库内。
gitlinuxwindowsmacos
查看详情 Git 错误错误
CONFLICT (content): Merge conflict合并冲突
Git 无法自动合并更改,因为同一行在两个分支中均被修改。
gitlinuxwindowsmacos
查看详情 Git 错误警告
You are in 'detached HEAD' stateDetached HEAD 状态
HEAD 指向某个具体提交而非分支,此时新提交将成为孤立提交。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: refusing to merge unrelated historiesfatal: refusing to merge unrelated histories
Git 拒绝合并两个没有共同祖先的分支。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: Your local changes would be overwrittenerror: Your local changes would be overwritten
Git 拒绝执行操作,因为该操作会覆盖未提交的本地更改。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: failed to push some refserror: failed to push some refs
推送被拒绝,因为远端存在你本地没有的更改。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: non-fast-forward updateerror: non-fast-forward update
此次推送会重写远端分支历史,已被拒绝。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: A branch named 'x' already existsfatal: A branch already exists
仓库中已存在同名分支。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: Cannot delete branch currently checked outerror: Cannot delete current branch
无法删除当前所在的分支。
gitlinuxwindowsmacos
查看详情 Git 错误信息
nothing to commit, working tree cleannothing to commit, working tree clean
没有可提交的更改;工作目录与最新提交一致。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: empty commit messageerror: empty commit message
因提交信息为空,提交被中止。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: ambiguous argumentfatal: ambiguous argument
Git 无法判断该参数指的是版本引用、路径还是其他内容。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: bad revisionfatal: bad revision
指定的版本(提交哈希、分支名、标签)不存在。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: remote origin already existsfatal: remote origin already exists
同名远端已存在于配置中。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: 'origin' does not appear to be a git repositoryfatal: remote repository not found
Git 无法连接到指定的远端仓库。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: Authentication failedfatal: Authentication failed
Git 与远端服务器的身份验证失败。
gitlinuxwindowsmacos
查看详情 Git 错误错误
Permission denied (publickey)Permission denied (publickey)
SSH 身份验证失败,因为服务器未接受你的公钥。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: unable to access: Could not resolve hostfatal: unable to access: Could not resolve host
Git 远端主机的 DNS 解析失败。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: could not apply commit变基冲突
变基过程中应用某个提交时发生冲突。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: could not apply (cherry-pick)Cherry-pick 冲突
cherry-pick 提交时发生了冲突。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: Unable to create lock filefatal: Unable to create lock file
存在 Git 锁文件(.lock),阻止了操作的执行。
gitlinuxwindowsmacos
查看详情 Git 错误致命
error: object file is emptyerror: object file is empty
某个 Git 对象文件已损坏且不含任何数据。
gitlinuxwindowsmacos
查看详情 Git 错误致命
error: corrupt loose objecterror: corrupt loose object
某个 Git 对象文件已损坏,无法读取。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: pathspec did not match any fileserror: pathspec did not match any files
指定的文件模式未匹配任何已跟踪的文件。
gitlinuxwindowsmacos
查看详情 - error: LFS object not found
- fatal: No submodule mapping found
- remote: error: File is too large
- fatal: shallow update not allowed
- error: cannot rebase with unstaged changes
- fatal: bad object
- There is no tracking information for the current branch
- Already up to date
- fatal: refusing to merge unrelated histories
- remote: error: hook declined to update
- remote: error: Protected branch update failed
- fatal: Not possible to fast-forward, aborting
- fatal: tag already exists
- No local changes to save
- error: 未找到任何 stash 记录
- warning: CRLF 将被替换为 LF
- fatal: 该操作必须在工作树中执行
- error: 找不到对象
- fatal: 该分支已在另一个工作树中检出
- warning: 检测到大文件
- error: gpg 签名数据失败
- fatal: 引用名称不是有效的 ref 名称
- error: 条目在工作树中已被修改
- error: pack 超过允许的最大大小
- 错误:未启用 sparse-checkout
- fatal: 索引文件已损坏