I wanna have a general .gitignore, which will contain dirnames and filenames of any level of a project, but put it into a subfolder. For example, I wanna ignore folder “c”, project structure:
root/
├── a/
│ └── a2/
│ └── a3/
│ └── .gitignore
├── b/
│ ├── bf1.txt
│ └── bf2.txt
└── c/
├── cf1.txt
└── cf2.txt
.gitignore:
c
In such case folder “c” isn’t ignored for git. What should I add to make it work? Or is it even possible? Thanks!