git clone from another directory

前端 未结 8 1975
一生所求
一生所求 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:27

    Use git clone c:/folder1 c:/folder2

    git clone [--template=] [-l] [-s] [--no-hardlinks]
    [-q] [-n] [--bare] [--mirror] [-o ] [-b ] [-u ]
    [--reference ] [--separate-git-dir ] [--depth ]
    [--[no-]single-branch] [--recursive|--recurse-submodules] [--]
    []
    
    
    
    
        The (possibly remote) repository to clone from.
        See the URLS section below for more information on specifying repositories.
    
    
        The name of a new directory to clone into.
        The "humanish" part of the source repository is used if no directory 
        is explicitly given (repo for /path/to/repo.git and foo for host.xz:foo/.git).
        Cloning into an existing directory is only allowed if the directory is empty.
    

提交回复
热议问题