Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在GIT bash中使用windows路径样式_Git - Fatal编程技术网

在GIT bash中使用windows路径样式

在GIT bash中使用windows路径样式,git,Git,我在windows中运行git,并在路径c:\projects 我知道我可以通过以下命令访问GIT bash中的此文件夹: cd /c/projects/ 是否有可能让GIT理解Windows路径样式,以便运行以下命令: cd "c:\projects\" 所有git bash程序都可以识别Windows路径,因为它们运行在Windows之上。现在发生的事情是,反斜杠是由git bash解释的。只需将它们与任何空白一起逃离即可: cd C:\\progects\\ 据我所知没有。您当前的解

我在windows中运行git,并在路径
c:\projects

我知道我可以通过以下命令访问GIT bash中的此文件夹:

cd /c/projects/
是否有可能让GIT理解Windows路径样式,以便运行以下命令:

cd "c:\projects\"

所有git bash程序都可以识别Windows路径,因为它们运行在Windows之上。现在发生的事情是,反斜杠是由git bash解释的。只需将它们与任何空白一起逃离即可:

cd C:\\progects\\

据我所知没有。您当前的解决方案是将整个Windows样式路径置于双引号中。切换到git CMD?@Tim Biegeleisen您的意思是将Windows样式路径置于双引号中应该有效吗?命令
cd“c:\projects\”
在我的案例中不起作用hmm…也许它不适用于Windows命令,但它应该适用于Git命令。抱歉,它起作用了。这就是我要找的。很遗憾,按TAB键后,没有目录自动完成功能