如何在Git Bash中使用Git for Windows更改目录? [英] How do I change the directory in Git Bash with Git for Windows?
本文介绍了如何在Git Bash中使用Git for Windows更改目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Git Bash中更改为目录 C:/ Users / myname / project name
?
解决方案
cd / c / users / myname / project\ name
请注意 ls /
,或者输入 cd /
,然后按Tab-完成,可能不会显示此文件夹的存在,但 cd / c
仍然可以工作。还要注意 pwd
(用于打印当前工作目录)可能显示类似于 / bin
的内容,但这可能不是实际工作文件夹中的命令,如 git clone
,它可能使用Git Bash开始的文件夹。
How would I change to the directory C:/Users/myname/project name
in Git Bash?
解决方案
cd /c/users/myname/project\ name
Beware that ls /
, or typing cd /
followed by Tab-completion, might not show the existence of this folder, but cd /c
will still work. Also note that pwd
(to print the current working directory) might show something like /bin
, but this might not be the actual working folder for commands such as git clone
, which might use the folder from which Git Bash was started.
这篇关于如何在Git Bash中使用Git for Windows更改目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文