How do you use Git to retrieve just one (or a few) files from a repo? [duplicate]

家住魔仙堡 提交于 2019-12-01 11:41:49

You may want to look into something called a sparse checkout which was implemented in Git 1.7 I believe. Before that I don't think git allowed you to do so although on github you can always copy individual files from their web interface by opening the file and saving it.

git works at the repository level, not at the file level (unlike CVS/SVN).

As a result, if you clone you usually clone the whole repo - and a change is tracked as a repository content change - not a simple file change.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!