如何从git存储库中只检出一个文件?如何从gitrepo中签出一个文件?
3 回答

当年话下
TA贡献1890条经验 获得超9个赞
git clone -n git://path/to/the_repo.git --depth 1
cd the_repo git checkout HEAD name_of_file

收到一只叮咚
TA贡献1821条经验 获得超4个赞
git log
git checkout hash-id path-to-file
git checkout 3cdc61015724f9965575ba954c8cd4232c8b42e4 /var/www/css/page.css
- 3 回答
- 0 关注
- 1553 浏览
添加回答
举报
0/150
提交
取消