DEV Community

Discussion on: I just asked: Are .gitignore files from directories above the repository's or from home directory loaded in any versions of Git?

Collapse
 
just1602 profile image
Justin Lavoie • Edited

Hello,

Normally, you have to declare your global ignore file in your ~/.gitconfig, like here. Than, the ignored files in your global ignore file will be ignore everywhere by git.

Generally, the global ignore file is use to ignore stuff like your IDE files / project fodlers, if you want to ignore some files in your home config, maybe you should create a .gitignore file in your home coonfig repository.

I hope it'll help you ! :)