Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How to change the location of ".gitconfig" under Windows?
icon2.gif  How to change the location of ".gitconfig" under Windows? [message #646504] Sat, 25 December 2010 15:58 Go to next message
oCameLo  is currently offline oCameLo
Messages: 2
Registered: December 2010
Junior Member
Eclipse Platform 3.6.1, EGit/JGit 0.9.1

I cannot change it under Windows > Preferences > Team > Git > Configuration.

Environment variables %HOME% and %GIT_CONFIG% didn't work either.

Thanks.
Re: How to change the location of ".gitconfig" under Windows? [message #646577 is a reply to message #646504] Tue, 28 December 2010 17:16 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 319
Registered: July 2009
Senior Member
JGit reads .gitconfig from wherever the user.home system property points to.
GIT_CONGIG is not recognized. I've opened bugs for this.,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=333215
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333269

https://bugs.eclipse.org/bugs/show_bug.cgi?id=333216 is slightly related, since Git for Windows uses the "system-wide" configuration file

[Updated on: Tue, 28 December 2010 17:20]

Report message to a moderator

Re: How to change the location of ".gitconfig" under Windows? [message #646585 is a reply to message #646577] Tue, 28 December 2010 19:27 Go to previous message
oCameLo  is currently offline oCameLo
Messages: 2
Registered: December 2010
Junior Member
user.home for Java under Windows means "parent directory of Desktop", it's a strange design.

Add this to eclipse.ini resolved my problem: -vmargs -Duser.home=%SOMEWHERE%

Thanks, Robin.
Previous Topic:synchronize with repository view?
Next Topic:Best way to fix merges
Goto Forum:
  


Current Time: Thu Aug 21 18:02:42 EDT 2014

Powered by FUDForum. Page generated in 0.01948 seconds