84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
github 怎么clone仓库下的指定目录。我不想把整个目录都clone下来,只是需要修改某个目录,请问怎么做
A warehouse is the only git. git clone is an operation on git and can only be the entire download. git cannot achieve your needs
// mybranch 指定的仓库名称 git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Can achieve:
mkdir myrepo cd myrepo git init git config core.sparseCheckout true git remote add -f origin git://... echo path/to/subdir/*> .git/info/sparse-checkout git checkout branchname
Handling the same as other language clients! Window: Linux: Git:
A warehouse is the only git. git clone is an operation on git and can only be the entire download. git cannot achieve your needs
Can achieve:
Handling the same as other language clients!
Window:
Linux:
Git: