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

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

问题描述

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



如何在egit中更改用户位置?我应该这样做,因为它包含不了解egit的特殊字符。我想要C:\git\home\.gitconfig而不是C:\Users\Кирилл\.gitconfig。我该怎么做?当我按打开没有任何反应。



在下一个TabRepository设置中,我也不会改变任何东西。

解决方案

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




  • 点击开始按钮。


    1. 右键单击计算机

    2. 单击属性

    3. 单击高级系统设置

    4. 高级选项卡中的环境变量。

    5. 单击新建按钮,在用户变量窗格下创建一个新变量。 / li>
    6. 在名称字段中输入HOME

    7. 输入%USERPROFILE%或值字段中的其他路径。 (HOME应指向您的主目录,例如C:\Users\Tom。确保正确的大小写!例如C:\users而不是C:\Users可能会导致问题!)

    8. 单击确定,然后再次单击确定。您刚刚在Windows上添加了Home目录。



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

How to change user location in egit? I should do it, because it contains special characters, which doesn't understand egit. I want "C:\git\home\.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.

解决方案

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

  • Click start button.

    1. Right click "Computer"
    2. Click "Properties"
    3. Click "Advanced System Settings"
    4. "Environment variables" in "Advanced" tab.
    5. Click the "New" button to create a new variable under user variables pane.
    6. Enter "HOME" in the name field
    7. Enter "%USERPROFILE%" or some other path in the value field. (HOME should point to your home directory e.g. C:\Users\Tom. Ensure correct case! E.g. C:\users instead of C:\Users may cause problems!)
    8. Click OK, and OK again. You have just added the Home directory on Windows.

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

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