Eclipse(GGTS)“存储库[用户名]的计算Git状态” [英] Eclipse (GGTS) "Computing Git status for repository [username]"

查看:120
本文介绍了Eclipse(GGTS)“存储库[用户名]的计算Git状态”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在Eclipse(GGTS / STS v3.4)中保存编辑时,它都会自动运行任务:为存储库[用户名]计算Git状态。

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

CPU使用率猛增,但似乎从未取得任何进展。在放弃并手动停止之前,我已将该流程运行了15分钟。

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.

大概是EGit正在尝试进行同步,但不清楚是什么原因,为什么。有谁知道为什么会发生这种情况以及如何阻止它?

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?

推荐答案

用于自动将项目连接到的较旧版本的EGit如果它在项目的任何父目录中找到 .git 的话,它的Git存储库。

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.

看来您的主目录中有一个Git存储库。根据主目录的大小,这可能需要很长时间。

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.

自EGit 3.0.2起,主目录不再自动建立索引。因此,请确保您使用的是EGit 3.0.2或更高版本。如果您使用的是Eclipse 4.3.0,请升级到4.3.1。否则,可以从 EGit下载页面升级到最新版本。

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.

升级后,打开 Git存储库视图(使用Ctrl + 3或Cmd + 3并输入其名称)。然后找到名为[用户名]的存储库,并将其从视图中删除。

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.

这篇关于Eclipse(GGTS)“存储库[用户名]的计算Git状态”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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