在 Egit (Eclipse) 中更改用户位置(home 变量) [英] Change User location(home variable) in Egit (Eclipse)

查看:25
本文介绍了在 Egit (Eclipse) 中更改用户位置(home 变量)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Eclipse Indigo 和 Windows 7 以及用于 Eclipse 的插件 egit/jgit.

I use Eclipse Indigo and Windows 7 and plugin egit/jgit for Eclipse.

如何在 egit 中更改用户位置?我应该这样做,因为它包含不理解 egit 的特殊字符.我想要C:githome.gitconfig"而不是C:UsersКирилл.gitconfig".我该怎么做?当我按下打开"时,什么也没有发生.

How to change user location in egit? I should do it, because it contains special characters, which doesn't understand egit. I want "C:githome.gitconfig" instead "C:UsersКирилл.gitconfig". How can I do it? When I press "Open" nothing happens.

在下一个选项卡存储库设置"中,我也没有更改任何内容.

And in the next Tab "Repository setting" I don't change anything too.

推荐答案

需要添加一个环境变量:这就是我在 Windows 7 上的做法

You need to add an environment variable: This is how i did it on windows 7

  • 点击开始按钮.
  • Click start button.
  1. 右键点击计算机"
  2. 点击属性"
  3. 点击高级系统设置"
  4. 高级"标签中的环境变量".
  5. 单击新建"按钮在用户变量窗格下创建一个新变量.
  6. 在名称字段中输入HOME"
  7. 在值字段中输入%USERPROFILE%"或其他路径.(HOME 应该指向您的主目录,例如 C:UsersTom.确保大小写正确!例如 C:users 而不是 C:Users 可能会导致问题!)
  8. 单击确定",然后再次单击确定".您刚刚在 Windows 上添加了主目录.

这篇关于在 Egit (Eclipse) 中更改用户位置(home 变量)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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