Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

move my global .gitconfig file [duplicate]

Tags:

git

windows-7

Possible Duplicate:
Changing .gitconfig location

I am a bit of a git newb so I am sure this must be simple, just eluding me.

On my work laptop my %homedrive% and %homepath% are set to a network home share. By default git is looking there for my .gitconfig file. This is no good for when I take my laptop anywhere, gitbash takes forever to start and of course my username etc are unset.

What I would like to do is to specify my actual local home path as the location for it (c:\Users\Tim\) but leave my %homedrive%\%homepath% alone.

How do I do this?

like image 251
Tim Jarvis Avatar asked May 03 '11 05:05

Tim Jarvis


1 Answers

OK. Seems that the fix (for my purposes) is to create a system environment variable HOME and set that to my C:\Users\Tim path.

like image 196
Tim Jarvis Avatar answered Oct 04 '22 19:10

Tim Jarvis