Reputation: 383
While pushing files to Github, we can ignore files from the Git repo. Can we ignore files while downloading from Github? There are YAML
, CONTRIBUTION
, CODE_OF_CONDUCT
, etc files in Github that we don't want to download from Github while cloning the repo.
Upvotes: 1
Views: 2737
Reputation: 1324347
You can do a partial clone, which is stricter than a sparse checkout:
The partial clone uses a git rev-list --filter
option.
Upvotes: 1