我一直使用msysgit作为windows上的源代码解决方案。但在git bash中无法访问新插入的U盘盘符。这个问题应该如何解决呢?
问题说明:
在msysgit中,可以使用cd /c/【some directory】
切换目录,但,使用cd /h
会反馈sh.exe": cd: /h: No such file or directory
。
注: h为Windows识别出的U盘盘符。msysgit的版本是:git version 1.9.2.msysgit.0
巴扎黑2017-04-28 09:07:08
Okay, the current method is:
You can now access the newly inserted USB flash drive.
PS: The solution suggested on Stackoverflow did not work on my computer.
Explanation
msysGit uses MinGW/Msys at the bottom level. In order to ensure program execution efficiency, the fstab information of the file system is created by the first Msys program and stored in memory. Only when all applications release their use of this fstab will the corresponding memory be released. This also explains why fstab is refreshed after closing all bash.
References