git clone from another directory

前端 未结 8 1989
一生所求
一生所求 2020-12-04 07:38

I am trying to clone repo from another directory.

Lets say I have one repo in C:/folder1 and C:/folder2

I want to clone the work in

8条回答
  •  天命终不由人
    2020-12-04 08:11

    None of these worked for me. I am using git-bash on windows. Found out the problem was with my file path formatting.

    WRONG:

    git clone F:\DEV\MY_REPO\.git
    

    CORRECT:

    git clone /F/DEV/MY_REPO/.git
    

    These commands are done from the folder you want the repo folder to appear in.

提交回复
热议问题