开发者

move my global .gitconfig file [duplicate]

This question already has answers here: Closed 11 years ago.

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 lo开发者_Go百科cal home path as the location for it (c:\Users\Tim\) but leave my %homedrive%\%homepath% alone.

How do I do this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜