We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support to clone specific folder of git repository using git sparse-checkout.
sparse-checkout
Case of 1 repository with multiple templates separated by folders
# templates-repository README.md python/ -- cookiecutter.json -- {{cookiecutter._project_name}}/ ---- main.py nodejs/ -- cookiecutter.json -- {{cookiecutter._project_name}}/ ---- package.json ---- src/ ------ index.js
cookiecutter https://github.com/audreyr/cookiecutter-pypackage --partial nodejs
Github: https://github.community/t5/How-to-use-Git-and-GitHub/How-can-I-download-a-specific-folder-from-a-GitHub-repo/m-p/95#M23 Git: https://git-scm.com/docs/git-sparse-checkout
The text was updated successfully, but these errors were encountered:
cookiecutter 1.7+ support --directory option which should work?https://cookiecutter.readthedocs.io/en/1.7.2/advanced/directories.html
--directory
Sorry, something went wrong.
No branches or pull requests
Support specific folder cloning
Support to clone specific folder of git repository using git
sparse-checkout
.Use case
Case of 1 repository with multiple templates separated by folders
Examples
Example repository structure:
Example of fetching specific template folder:
Links
Github: https://github.community/t5/How-to-use-Git-and-GitHub/How-can-I-download-a-specific-folder-from-a-GitHub-repo/m-p/95#M23
Git: https://git-scm.com/docs/git-sparse-checkout
The text was updated successfully, but these errors were encountered: