git checkout only certain file types for entire project

后端 未结 6 1192
遥遥无期
遥遥无期 2020-12-31 05:36

Is there a way to perform a git checkout for only certain file types (.xlf), which recurses down through the entire repository? The results should contain the struture of th

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 05:50

    No; git operates at a whole-repository (and whole-history) level; there's no way of getting a partial checkout of a repository. You can of course check out the repository and then delete everything that doesn't match your file, but of course you gain virtually nothing by doing so.

提交回复
热议问题