Set up a GitHub Repository

Configure .gitignore

Initializing a Git repository may encounter an error/warning if an renv or venv is already established. This is because these directories can contain thousands of files. To avoid this warning, create a .gitignore file specifying the directories and files to exclude from tracking before initializing a Git directory.

/py_env # excludes the py_env directory
/renv

*.html  # excludes all .html files
*.yml   # excludes all .yml files
*.ipynb # excludes all .ipynb files