Change User location(home variable) in Egit (Eclipse)

前端 未结 2 1914
南笙
南笙 2021-02-14 10:53

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 d

相关标签:
2条回答
  • 2021-02-14 11:34

    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.
    0 讨论(0)
  • 2021-02-14 11:38

    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.

    0 讨论(0)
提交回复
热议问题