How to set up GIT that he was added to comity only certain files from a directory?

I have for example the directory Controller and comity I need to add only the files from the list, but not all. How to do that?
July 8th 19 at 15:42
1 answer
July 8th 19 at 15:44
Solution
Configure Git To Ignore
I believe that there is one zablocky file, add it. - Brody_Dickins commented on July 8th 19 at 15:47
you can specify the mask. - otho.Mraz23 commented on July 8th 19 at 15:50
you can specify the controllers folder. if you have naturally MVC. - heber_Prohas commented on July 8th 19 at 15:53
: but I've got a test. The controllers added to the repository - Brody_Dickins commented on July 8th 19 at 15:56
: you can seignorial all files in the directory, and then allow only the necessary: stackoverflow.com/questions/2415873/exceptions-in-... - cortney.Kuhic commented on July 8th 19 at 15:59

Find more questions by tags GitGitHub