gitignore

What is the purpose of saved* command in a .gitignore file?

What is the purpose of saved* command in a .gitignore file? Question: Following the .gitignore file in one of my research project built in python I have noticed the saved* command but I couldn’t relate the purpose of it from that project directory. Here’re the commands in the .gitignore file: *.pyc .ipynb_checkpoints saved* Now, I …

Total answers: 1

Adding files to gitignore in Visual Studio Code

Adding files to gitignore in Visual Studio Code Question: In Visual Studio Code, with git extensions installed, how do you add files or complete folders to the .gitignore file so the files do not show up in untracked changes. Specifically, using Python projects, how do you add the pycache folder and its contents to the …

Total answers: 4

Should we gitignore the .python-version file?

Should we gitignore the .python-version file? Question: I have a .python-version file, and when I create a Python repo with github and specify that it should have a .gitignore, it adds the .python-version file to it. It seems to me that that file should NOT be ignored since other people running the code on different …

Total answers: 5

VirtualEnv – Should I ignore the venv folder?

VirtualEnv – Should I ignore the venv folder? Question: I am starting to understand the advantages of virtualenv. Now, I have created virtualenv folder named venv by doing virtualenv venv. Now my question is, Is it useful to push this folder to github or should I add it to .gitignore? Asked By: Sreekar Mouli || …

Total answers: 1

Using .gitignore with *.pyc in subfolders

Using .gitignore with *.pyc in subfolders Question: I see that with python 3, there is a __pycache__ in each subfolder of my application and of course *.pyc files will be created there as well. In my .gitignore of my app’s root folder, can I simply place: **/__pycache__ **/*.pyc to have these ignored in all future …

Total answers: 1

Best practices for adding .gitignore file for Python projects?

Best practices for adding .gitignore file for Python projects? Question: I’m trying to collect some of my default settings, and one thing I realized I don’t have a standard for is .gitignore files. There’s a great thread showing a good .gitignore for Visual Studio projects, but I don’t see many recommendations for Python and related …

Total answers: 6