# public-static **Repository Path**: rogchen/public-static ## Basic Information - **Project Name**: public-static - **Description**: html-js-css-layui - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-03 - **Last Updated**: 2022-03-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README git 下载指定目录 ```$xslt #本地新建目录 cd LocalProj #初始化工程 git init #添加仓库地址 git remote add -f origin ``` 在config中设置sparse checkout模式为true: `git config core.sparseCheckout true` 把需要checkout(即需要下载的)文件或目录写入.git/info/sparse-checkout `echo fileOrdir >> .git/info/sparse-checkout` 拉取代码 `git pull origin master`