您的位置:首页 > 移动开发

Eclipse一直显示(Hangs)“Computing Git status for repository Application”

2016-12-05 13:00 836 查看
Eclipse中一直显示Computing Git Status for reposritory Application,导致Eclipse相应变慢。找到如下解决方法:======For Linux=====In my previous project I often switching my workspace branch.  And that turns to make my eclipse Hangs, it always show“Computing Git Status for reposritory Application”If you search in stackoverflow then you will find a lot of answer, like in this link orthis link.But I found an article that can solve my problem like a champs.just try execute this code in your workspace folder.
rm -r .metadata/.plugins/org.eclipse.core.resources/.projects/*/org.eclipse.egit.core
rm -r .metadata/.plugins/org.eclipse.core.resources/.projects/*/.indexes/properties.index
注:rm是linux删除命令;*表示所有的目录,可以对应到某一个工程的目录
======For Windows=====如果实在windows下,可以直接到eclipse的workspace目录下,找到上面的目录,剪切
org.eclipse.egit.core和
properties.index到其他目录[/code]
然后重启eclipse, process视图中,不再显示“Computing Git Status for reposritory Application”
=============上述操作会导致项目与Git断开==========上述操作会导致项目与Git断开,在项目上右键->team,不显示commit等git操作选项。我的解决方法是:1.在Git Repositories视图中确定项目的改动可以识别,在项目->Working Directory中查看代码2.把
org.eclipse.egit.core和
properties.index在复制回原来的目录(此步骤也可能不需要)3.Eclipse->Project Explorer->项目->team->Share Project,自动识别出git中关联的项目项目回复正常参考地址: http://rizkykojek.wordpress.com/2015/02/17/eclipse-hangs-computing-git-status-for-repository-application/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: