I am trying to use a file .gitignoreto exclude a specific directory, but I have problems. I looked at how to do this in several forums, including stackoverflow, and although I found this a bit confusing, I thought I understood, but it doesn't seem to work as I thought.
So, I have a repo, and there is a specific directory at the top level called "images" that I want to exclude. Here is what I put into my .gitignorefile:
images/
I added and did everything, everything is good and good, he ignored the director of images at the top level. But then I realized that he also ignored forums / images. So what is the deal? How to handle ignoring a specific directory, but not any others with the same name?
source
share