Browse Source

Update .gitignore commands in virtual-environments.md

The documentation instructs users to create a .gitignore file inside the .venv folder. This is unnecessary and potentially confusing, because the virtual environment should be ignored from the project root .gitignore. Creating a .gitignore inside .venv is not standard Git/Python practice and can mislead users.
pull/14383/head
dualtribesman 8 months ago
committed by GitHub
parent
commit
0621a15e35
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/docs/virtual-environments.md

2
docs/en/docs/virtual-environments.md

@ -261,7 +261,7 @@ Do this **once**, right after you create the virtual environment.
<div class="termy">
```console
$ echo "*" > .venv/.gitignore
$ echo ".venv" > .gitignore
```
</div>

Loading…
Cancel
Save