I'm trying to ignore a file with github but for some reason it doesn't ignore it, for this I have the following gitignore file:
*.p12
What I want is to ignore the "firma.p12" file, it is located in the following directory:
-Raiz
-static
-SRI
-firma.p12(este deseo ignorar)
the file must be in that path, but I don't know how to ignore it, I appreciate any help..!!
To solve the problem, you can make use of the
wildcards
as discussed in the Git Ignoring files section.Your line could look like this:
What the above line tells you is to ignore all files with an extension
p12
that are in the directorystatic
or any of its subdirectories.I hope that this solves the problem.