Gru
Gru

Reputation: 965

Ignore a specific folder where ever it occurs throughout the project (even if the folder is created in the future) in .gitignore

I want git to ignore __ pycache__ folder in django. As and when I am creating new apps, this folder "__ pycache __" will be created in the new apps, but I want them to be ignored automatically , instead of mentioning the path for each __ pycache __ folder in every app.

So how do I write in .gitignore so that it ignores the folder named, "__ pycache __" inside the entire project directory.

Upvotes: 0

Views: 108

Answers (1)

Fraddy
Fraddy

Reputation: 331

add below line in .gitignore

__pycache__

Upvotes: 1

Related Questions