在cygwin环境中,我执行svn info "D:\tmpsvn\code.txt"命令。
它有一些警告:
cygwin warning: MS-DOS style path detected: /cygdrive/d/tmpsvn/D:\tmpsvn\code.txt Preferred POSIX equivalent is: /cygdrive/d/tmpsvn/D:/tmpsvn/code.txt CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames svn: warning: W155010: The node '/cygdrive/d/tmpsvn/D:\tmpsvn\code.txt' was not found.
为什么路径被转换成/cygdrive/d/tmpsvn/D:\tmpsvn\code.txt?
如何正确执行命令?
发布于 2014-11-24 06:56:51
不要使用cygwin提供的svn。下载一个命令行版本svn,这样就可以了。
发布于 2014-11-20 07:50:49
在Linux中,文件路径总是包含/。文件路径中没有反斜杠()。在Windows中,两者都能工作。反斜杠是转义字符。还有一点: Linux是区分大小写的。小心大写字母。Windows不关心大写字母。
Cygwin是一个用于windows的unix/linux环境模拟。
您使用的是绝对路径,而相对路径是预期的。尝试命令'pwd‘查看您现在所在的目录。意思是打印工作目录。尝试修改您的路径前缀,使其匹配。
https://stackoverflow.com/questions/27034278
复制相似问题