Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 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 20:58 Go to next message
oCameLo  is currently offline oCameLo Friend
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 22:16 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
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 22:20]

Report message to a moderator

Re: How to change the location of ".gitconfig" under Windows? [message #646585 is a reply to message #646577] Wed, 29 December 2010 00:27 Go to previous message
oCameLo  is currently offline oCameLo Friend
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: Tue Mar 19 10:05:41 GMT 2024

Powered by FUDForum. Page generated in 0.02048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top