github clone有某个仓库下的指定目录
淡淡烟草味
淡淡烟草味 2017-05-02 09:27:43
0
4
655

github 怎么clone仓库下的指定目录。我不想把整个目录都clone下来,只是需要修改某个目录,请问怎么做

淡淡烟草味
淡淡烟草味

reply all(4)
过去多啦不再A梦

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

Ty80
// 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
过去多啦不再A梦

Handling the same as other language clients!
Window:

Linux:

Git:

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!