开发者

How do you specify git URLs with spaces on Windows under cygwin?

开发者 https://www.devze.com 2023-01-29 15:15 出处:网络
If I have a git repository under cygwin with a directory name of the form /cygdrive/c/Documents and Settings/user/My Documents/My Dropbox/xxxxx how do I construct a file: URL for git that references t

If I have a git repository under cygwin with a directory name of the form /cygdrive/c/Documents and Settings/user/My Documents/My Dropbox/xxxxx how do I construct a file: URL for git that references this reposi开发者_StackOverflowtory?


I don't have a Windows machine around to test it out, but you should be able to quote the whole path with double quotes, or alternately escape all spaces with a backslash.

If that doesn't work, try making a symlink that doesn't have spaces and reference the symlink from git.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号