Part of the resources of a project on the local download github git

Note the following commands to be carried out under git bash, do not be cmd, or powershell.

 

cd to a directory

git init 

git  remote add -f origin <url>

git config core.sparsecheckout  true

echo "you_forder1/subforder" >> .git/info/sparse-checkout

echo "you_forder2/subforder" >> .git/info/sparse-checkout

// ... add more folders statement can be repeated.

git checkout master

ls

 

Guess you like

Origin www.cnblogs.com/arxive/p/11105358.html
Recommended