What files / directories are git ignored by default?

I noticed that in the newly created git repository, directories like __pycache__

or. svn

are already ignored. I don't remember how to set up git to ignore these directories. How can I see a list of templates that are currently being ignored by git? I am using git v2.1.3.

+3


source to share


1 answer


Note that git ignores empty directories - it simply cannot store them. Also you can check if global gitignore exists on your system ( ~/.gitignore_global

)



+4


source







All Articles