While adding my project to GitHub, do I also have to add the virtual environment folder and subsequently commit and push it or I can skip it?
I just finished with my project and was going to put it on GitHub but I have this doubt regarding the venv folder. Below is the screenshot of my folder-structure;
Please guide me as this is my first time using GitHub and this is my first project too.
Do not commit the
venv directory. The ones who will clone your git repository will be able to create their own virtual environment from scratch thanks to the
requirements.txt file, which you should definitely keep up-to-date and commit into the git repository.
To seed a virtual environment:
path/to/venv/python -m pip install --requirement requirements.txt