Eclipse (GGTS) “Computing Git status for repository [username]”

跟風遠走 提交于 2019-12-11 04:12:17

问题


Each time I save an edit in Eclipse (GGTS/STS v3.4) it automatically runs the task: Computing Git status for repository [username].

The CPU usage rockets but it never seems to make any progress. I've left the process running for up to 15 minutes before giving up and stopping it manually. It then restarts the next time I save a change.

Presumably EGit is trying to synchronise but it isn't really clear what or why. Does anyone know why this might be happening and how to stop it?


回答1:


Older versions of EGit used to automatically connect a project to its Git repository in case it finds a .git in any of the project's parent directories.

In your case, it seems you have a Git repository in your home directory. Depending on the size of your home directory, this can take a long time.

Since EGit 3.0.2, the home directory is no longer automatically indexed. So, make sure you are using EGit 3.0.2 or higher. In case you are using Eclipse 4.3.0, upgrade to 4.3.1. Otherwise upgrade to the newest version from the EGit download page.

After upgrading, open the Git Repositories view (using Ctrl+3 or Cmd+3 and typing its name). Then find the repository named [username] and remove it from the view.




回答2:


In order to stop this thread from running, try: rm -r .metadata/.plugins/org.eclipse.core.resources/.projects/*/org.eclipse.egit.core

and rm -r .metadata/.plugins/org.eclipse.core.resources/.projects/*/.indexes/properties.index

seems to be working! credit to http://willtipton.com/coding/2014/09/21/Eclipse-building-git-something.html




回答3:


cleaning up org.eclipse.egit.core and properties.index was useful. It works for me to get rid of computing Git status issue.

But now I cannot sync my project.



来源:https://stackoverflow.com/questions/19457735/eclipse-ggts-computing-git-status-for-repository-username

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!