How to configure .gitignore?

Hi all.

Project structure:

*the directory*

Directory - the folder "vendor", there's a bunch of library files.
I need to access 1 folder on the 3rd level deep into a vendor, and the rest close to Gita.

How to register? There is an option to close all but one vendor directories inside?
Or required to register, 100500 rules for all the directories inside vendor, please tell me.

Read the documentation about see this:

!/vendor/.../.../"open folder"


UPD. It worked like this:

!/vendor/Tier1/уровень2/level 3/
April 4th 20 at 00:36
1 answer
April 4th 20 at 00:38
only need to change the order, first describes the exception
!/vendor/.../.../"open folder"
Thank you! - graham.Spor commented on April 4th 20 at 00:41
Noted, but doesn't work! - graham.Spor commented on April 4th 20 at 00:44
@graham.SporWorks. Just need to hang out with all of this. I remember also there was a small issue with .gitignore and vendor. The point is that I was daddy's assets, which also was a vendor (with all sorts of gaasaku and cheesecake). The problem is that I couldn't let it all collect (or rather the coder in my team) and we had to leave on the repository. Tobish in the root of the vendor in the assets folder is the vendor. Well,.gitignore I have hung a vendor and, accordingly, that the assets are not added to turnips. Had to spin .gitignore. If I am not mistaken I clearly pointed out that it was HERE that dad vendor does not ship and wound up. You answer the author wrote is true, you have exceptions to whirl - Mauricio commented on April 4th 20 at 00:47
@nazartertyshny, Yes, thanks to Google and a tambourine in the end, it turned out. Add in the question text working version. - graham.Spor commented on April 4th 20 at 00:50

Find more questions by tags Git