简体   繁体   English

如何将目录从 C 驱动器更改为 Git CMD 上的其他驱动器

[英]How can I change directory from C drive to other drive on Git CMD

I am struggling to find out the solution "How I can switch from C drive to other drive using Git CMD in my desktop. I am using Windows 10. I am struggling to find out the solution "How I can switch from C drive to other drive using Git CMD in my desktop. I am using Windows 10.

When I当我

  1. try to drug and drop;尝试吸毒并放弃; it says,它说,

is not recognized as an internal or external command, operable program or batch file.不被识别为内部或外部命令、可运行程序或批处理文件。

  1. use利用

cd /mnt/F/micro/study or cd \F\micro\Github cd /mnt/F/micro/study 或 cd \F\micro\Github

it says,它说,

The system cannot find the path specified.该系统找不到指定的路径。

I checked all the possible way described in here but nothing worked for me.我检查了此处描述的所有可能方式,但对我没有任何帮助。

I don't see any /mnt in my W10 Git bash session.我的 W10 Git bash session 中没有看到任何/mnt

A cd /f or cd /F would work just fine, and you can confirm it with, in the bash session, pwd cd /fcd /F可以正常工作,您可以在 bash session 中确认它, pwd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM