gpt4 book ai didi

尝试配置 GIT 时 Eclipse 没有响应

转载 作者:太空狗 更新时间:2023-10-29 12:49:28 24 4
gpt4 key购买 nike

Windows 10 专业版 64 位
固态硬盘金士顿
i5-4690
Eclipse 版本:全部
工作区:空
问题:每次我尝试配置 TEAM > GIT > 配置或我尝试导入/创建本地/远程 git 时,eclipse 卡住,直到我用任务强制关闭它。
我已经尝试过全新安装 (juno/mars/neon/oxygen) 32/64 位,有和没有安装程序都没有好的结果

!SESSION 2017-06-27 00:39:29.113 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:39:50.111
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:41:04.510 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/C:/Users/Enrico/workspace/ -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:41:13.439
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:42:32.097 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:42:42.119
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:45:05.785 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/C:/Users/Enrico/workspace/ -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:45:13.542
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:47:39.707 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:47:49.374
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

我的解决方案:“从 USER_FOLDER ( .p2 .eclipse ) 和 PROGRAMFILES 中删除所有文件夹。记得重新启动!!!现在一切都可以在 eclipse oxygen 和 git 项目中正常工作”

最佳答案

Eclipse 的 GIT 插件会尝试检测是使用操作系统的 GIT 可执行文件,还是内置的 GIT。因此它使用 bash 命令。

在 Windows Creators Update 之前,bash 命令不存在(除非您安装了 CygWin 或类似程序)。在 Windows Creators Update 中,添加了一项新功能 Linux 的 Windows 子系统。首次调用 bash 命令时,它会询问是否安装此功能。

因此,为了在 Eclipse 中修复 GIT,您只需手动运行一次 bash 并安装它。您可能需要在 Windows 中激活开发者模式。

关于尝试配置 GIT 时 Eclipse 没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44769837/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com