开发者

How can I make GIT to default to my home folder?

开发者 https://www.devze.com 2023-01-27 19:42 出处:网络
I\'ve just installed GIT on my work machine (Windows 7) connected to the domain at work. When I start the GIT bash it starts on \"H:\" instead of in my home folder. I think this could be a problem whe

I've just installed GIT on my work machine (Windows 7) connected to the domain at work. When I start the GIT bash it starts on "H:" instead of in my home folder. I think this could be a problem when I'm not connected to the domain since the .ssh folder is located on "H:" instead of my home folder. I have set HOME envi开发者_如何学JAVAronment folder to point to c:\Users\MyName, but that doesn't help. My HOMEDRIVE environment variable points to "H:" and the HOMEPATH to "\", but I can't change those.

First question: Will there be an issue when I'm not connected to the domain and the .ssh folder is on a domain drive? Second question: How do I fix it? :)


Just have bash cd to your home directory when you start it with like cd /home/dan in .bashrc.

I did this in cygwin once as it put my home directory in /bin/%SOMETHING%.

0

精彩评论

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

关注公众号