Gitignore all obj directories except .m and .h files inside them
Xamarin Studio being a piece of garbage I can't just add obj
to .gitignore because any .h and .m files generated for / via Xcode are stored somewhere in the obj directory of the respective projects, These .h and .m files should be tracked in the repository, otherwise the build may break for some team members.
How can I ignore the project projects obj directories except for the .h and .m files they contain?
I tried
obj
!*.h
!*.m
but the exclusion rules don't work. I saw in this case obj/*
, but when I change it:
obj/*
!*.h
!*.m
all obj directories and their contents are monitored.
How to simply ignore everything in all obj directories except .h and .m files?
source to share
Have you tried the file .gitignore
suggested here: gitignore.io ? There is one for XamarinStudio, this might help you solve your problem.
Hope this link helps you.
source to share