planetp
planetp

Reputation: 16085

What files/directories does git ignore by default?

I noticed that in a newly created git repo, directories like __pycache__ or .svn are already ignored. I don't remember configuring git to ignore these directories. How can I view the list of patterns that are currently ignored by git? I'm using git v2.1.3.

Upvotes: 10

Views: 1216

Answers (1)

Maciej Baranowski
Maciej Baranowski

Reputation: 620

Note that git ignores empty directories - it just cannot store them. Also you can check if there's global gitignore created in your system (~/.gitignore_global)

Upvotes: 5

Related Questions