I have created a submodule to organise frequently used files from my repositories, to access them using
git submodule add \repo\
I was wondering if I could create an ignore file in this submodule to avoid having to create one each time I make a new repository.
If my folder structure looks like this:
root
│ foo.log
│
└───submodule
.gitignore
and .gitignore
has the following pattern:
*.log
Is it possible to use the .gitignore
file in root\submodule\
to ignore the file: foo.log
?
If not, is my best option to just copy the .gitignore
file into the project manually?
Thanks for your help.