如何 clone/load gitignore 中提到的来自 master 的特殊数据

How to clone/load special data mentioned in gitignore from master

我想将文件保留在我的 git 母版中,克隆 git 时不应下载这些文件。只有 运行 一个额外的脚本应该下载这些可选文件(一些经过训练的模型)。 是否有任何 git 方式(例如特殊命令)/pythonic 方式来执行此操作?

I want to keep files in my git master, which should not be downloaded when the git is cloned.

不可能。要么将文件存储在不同的分支中,要么存储在与脚本克隆它们的位置完全不同的存储库中。