You just started a new project that a team has working on for a while and like to add your code into the codebase. Or you want to use a well-known webapp template for your new project.
You wrote the code, made your tests and then added your “piece of magic” text
but it doesn’t show up in
git status not showing your file
or directory. Also you can’t check manually
.gitignore since it is 450 lines
The solution? Use built-in git command
$ git check-ignore -v filename
For instance; you wrote
bashscripts for some automation and added them in a
scripts in the project root. When you use
would give some output like below:
Which basically says: on the line “274”
[Ss]cripts causes to ignore your
If you are enjoying my content, maybe you would enjoy buying me a coffee as well.
Just a food for thought.