Git clone ssh with spaces in username, path and different drive

前端 未结 4 779
抹茶落季
抹茶落季 2021-01-21 06:29

I have quantity 3 windows 7 professional machines. Two are setup as development machines (one desktop and one laptop) with Git installed. The third is setup as a file server wit

4条回答
  •  被撕碎了的回忆
    2021-01-21 07:01

    I have tried exactly the same and failed. The issue appears to be that a repo shall be on the c-drive on a windows platform.

    I found no difference using either of

        git clone "ssh://@/"
        git clone "ssh://@/c/" <= note: changed 'd' to 'c'
        git clone "ssh://@/c:/"
    

    To get to a repo on other drives I solved it by using windows links and a folder helper on the c-drive:

        mkdir /
        cd /
        mklink /J  :/
    

    Then clone from the helper folder

        git clone "ssh://@//"
    

提交回复
热议问题