Best practices for adding .gitignore file for Python projects? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago. Improve this question I’m trying to collect some of my default settings, and one thing I realized I don’t … Read more

git still shows files as modified after adding to .gitignore

i’m adding this to .gitignore file .idea/* but anyway the status is: # modified: .gitignore # modified: .idea/.generators # modified: .idea/dovezu.iml # modified: .idea/misc.xml # modified: .idea/workspace.xml what am i doing wrong ? i even added .idea/* to the global ~/.gitignore_global but git status, anyway shows me: # modified: .gitignore # modified: .idea/.generators # modified: … Read more

Should I check in folder “node_modules” to Git when creating a Node.js app on Heroku?

I followed the basic getting started instructions for Node.js on Heroku here: https://devcenter.heroku.com/categories/nodejs These instruction don’t tell you to create a .gitignore node_modules, and therefore imply that folder node_modules should be checked in to Git. When I included node_modules in Git repository, my getting started application ran correctly. When I followed the more advanced example … Read more