Change User location(home variable) in Egit (Eclipse)
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:\Us开发者_C百科ers\Кирилл\.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.
- Right click "Computer"
- Click "Properties"
- Click "Advanced System Settings"
- "Environment variables" in "Advanced" tab.
- Click the "New" button to create a new variable under user variables pane.
- Enter "HOME" in the name field
- 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!)
- Click OK, and OK again. You have just added the Home directory on Windows.
Git reads the XDG_CONFIG_HOME environment variable to find the users git config (see http://git-scm.com/docs/git-config) but unfortunately JGit doesn't look at it.
I've raised a bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=430194
please log in to the Eclipse Bugzilla and vote for it.
精彩评论