Skip to content

Template .gitignore with quarto create-project #575

Answered by jjallaire
dmbates asked this question in Q&A
Discussion options

You must be logged in to vote

Currently we don't create the .gitignore file upon create-project but rather we do it during quarto render if we see that the project is within a git repo (the idea being not to auto-create files not strictly required).

Note that this logic currently resolves to the following .gitignore for all projects:

/.quarto/

Additionally, if we detect a Python virtual environment in env/ we add that as well:

/.quarto/
/env/

Again, all of this occurs during quarto render rather than quarto create-project.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dmbates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants