Eclipse EGit和git在命令行上显示不同的状态 [英] Eclipse EGit and git on command line show different status

查看:706
本文介绍了Eclipse EGit和git在命令行上显示不同的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的git存储库中,我可以执行git状态,并告诉我所有内容都是最新的:

  [598] :git status 
#在分支主
没有提交(工作目录清除)

如果我使用EGit连接到存储库,并在Eclipse中进行同步,我得到:





不知何故,EGit认为很多文件已被删除并以同名命名。由于git状态不返回任何提交,我希望在这里得到一个空的窗口。



为了完整性:这是在OSX 10.7,但我已经看到同样的问题在窗口7 Pro / p>

任何想法在这里发生什么?

解决方案

你在这里使用非7位字符(umlaut o)。
对不起,这是已知的造成麻烦。



您必须重新编码utf8文件名的树。即使你这样做,这不是免费的。



请参阅这个问题为git部分,而这个bug for egit part。


In my git repository I can do git status and it tells me that everything is up to date:

[598] : git status
# On branch master
nothing to commit (working directory clean)

If I connect to the repository with EGit and do a synchronize in Eclipse I get:

Somehow EGit thinks that a lot of files have been removed and readded witht the same name. Since git status returns nothing to commit I expect to get an empty window here.

For completeness: This is on OSX 10.7 but I've seen the same problem on Window 7 Pro as well.

Any ideas what's going on here?

解决方案

You are using non 7-bit character here (the umlaut o). Sorry, this is known to cause trouble.

You have to recode the tree for utf8 filename. Even if you do this, this is not bug free.

See this question for git part, and this bug for egit part.

这篇关于Eclipse EGit和git在命令行上显示不同的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆