Git 错误信息
No local changes to saveNo local changes to save
git stash 未找到任何已修改的已跟踪文件可供暂存。
gitlinuxwindowsmacos
导致此错误的原因
您运行了 git stash,但已跟踪文件没有任何更改。未跟踪的文件默认不会被暂存。所有更改可能已提交或已暂存。
如何修复
这是提示信息。使用 git stash -u 以包含未跟踪的文件。通过 git status 查看实际状态。您的工作目录已经是干净的。
相关错误代码
Git 错误错误
fatal: tag already existsfatal: tag already exists
指定名称的标签已存在。
gitlinuxwindowsmacos
查看详情 Git 错误信息
nothing to commit, working tree cleannothing to commit, working tree clean
没有可提交的更改;工作目录与最新提交一致。
gitlinuxwindowsmacos
查看详情 Git 错误警告
warning: Large files detectedwarning: 检测到大文件
Git 检测到可能导致仓库膨胀的大文件。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: unable to access: Could not resolve hostfatal: unable to access: Could not resolve host
Git 远端主机的 DNS 解析失败。
gitlinuxwindowsmacos
查看详情 Git 错误错误
error: Your local changes would be overwrittenerror: Your local changes would be overwritten
Git 拒绝执行操作,因为该操作会覆盖未提交的本地更改。
gitlinuxwindowsmacos
查看详情 Git 错误错误
fatal: A branch named 'x' already existsfatal: A branch already exists
仓库中已存在同名分支。
gitlinuxwindowsmacos
查看详情