首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >git-status会报告一切正常,但git-pull会抱怨未暂存的更改

git-status会报告一切正常,但git-pull会抱怨未暂存的更改
EN

Stack Overflow用户
提问于 2017-10-18 07:00:49
回答 1查看 160关注 0票数 0

有人能给我解释一下下面的输出吗?

代码语言:javascript
复制
[user@ hostname /dir]% git status
On branch master
Your branch is up-to-date with 'origin/master'.

It took 11.81 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
nothing to commit, working directory clean
[user@ hostname /dir]% git pull
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.
[user@ hostname /dir]% git --version
git version 2.4.8
[user@ hostname /dir]%
EN

回答 1

Stack Overflow用户

发布于 2017-10-18 07:25:30

消息本身来自git-sh-setup.shgit-pull.sh (在Git version2.4.8中)调用它来确保可以运行运行git rebasegit pull

不清楚的是为什么git diff-files以非零状态退出(参见git-sh-setup.sh中直接链接行上方的行),即使git status说没有什么可提交的。手动运行git diff-files以获取其实际输出可能会有所启发。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46800460

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档