gitignore how to ignore a file and not a directory tree
I have a weird behavior with my
My project tree looks like this
abc | |-> inc |-> src |-> obj--- | |-> abc (The exeutable file)
I would like that the abc executable will be ignored so I added
abc to my
but now, the whole abc tree is ignored.
How can I specify that I want to ignore only a file called abc, and not a directory ?
*.so *.o *.a abc
2 Solutions collect form web for “gitignore how to ignore a file and not a directory tree”
You could specify the path:
You can include a “negative” pattern in your