[英]How can I make GIT to default to my home folder?
I've just installed GIT on my work machine (Windows 7) connected to the domain at work. 我刚刚在连接到工作域的工作机(Windows 7)上安装了GIT。 When I start the GIT bash it starts on "H:" instead of in my home folder.
当我启动GIT bash时,它以“ H:”开头,而不是在我的主文件夹中。 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.
我认为当我未连接到域时,这可能是个问题,因为.ssh文件夹位于“ H:”而不是我的主文件夹上。 I have set HOME environment folder to point to c:\\Users\\MyName, but that doesn't help.
我已经将HOME环境文件夹设置为指向c:\\ Users \\ MyName,但这没有帮助。 My HOMEDRIVE environment variable points to "H:" and the HOMEPATH to "\\", but I can't change those.
我的HOMEDRIVE环境变量指向“ H:”,而HOMEPATH指向“ \\”,但是我不能更改它们。
First question: Will there be an issue when I'm not connected to the domain and the .ssh folder is on a domain drive? 第一个问题:当我未连接到域并且.ssh文件夹位于域驱动器上时,会出现问题吗? 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
. 像在
.bashrc
cd /home/dan
一样启动bash cd
到您的主目录。
I did this in cygwin once as it put my home directory in /bin/%SOMETHING%
. 我在cygwin中做了一次,因为它把我的主目录放在
/bin/%SOMETHING%
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.