Home > OS >  How to ignore a folder in a folder on GitHub?
How to ignore a folder in a folder on GitHub?

Time:03-04

In my project I have a folder where inside it there's another folder (and some other files I want to push), called __pycache__. How do I ignore the __pycache__ folder but not the files inside the folder that contains the __pycache__ folder?

CodePudding user response:

You can just add this to your .gitignore file

parentFolder/__pycache__/
  • Related