我如何让GIT默认到我的个人文件夹? [英] How can I make GIT to default to my home folder?
问题描述
我刚刚在我的工作机器(Windows 7)上安装了GIT,它连接到工作域。当我启动GIT bash时,它将从H:开始,而不是在我的主文件夹中。我认为这可能是一个问题,因为.ssh文件夹位于H:而不是我的主文件夹,因此我没有连接到域。我已经将HOME环境文件夹设置为指向c:\ Users \ MyName,但这没有帮助。我的HOMEDRIVE环境变量指向H:,HOMEPATH指向\,但我无法改变这些。
第一个问题:会不会有问题当我没有连接到域并且.ssh文件夹位于域驱动器上时?第二个问题:我该如何解决? :)
只要你有bash cd
像 cd / home / dan
在 .bashrc
中启动它。
我在cygwin中完成了一次,因为它将我的主目录放入 / bin /%SOMETHING%
中。
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 environment 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%
.
这篇关于我如何让GIT默认到我的个人文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!