For those struggling with the same problem. Here is how to ignore a subfolder.
First of all you will need to install tortoise as suggested in the system requirements – https://docs.mendix.com/refguide/system-requirements#2-1-tortoisesvn
Lets assume that project structure looks like this:
- deployment - releases - resources - userlib - tools - nodeUtility - node_modules - src *other folders and files omitted
and you want to ignore the folder node_modules inside NodeUtility, but keep the src folder.
In explorer open the root folder of the project then right click on an empty space in the folder and open TortoiseSVN > Properties
Open the svn:ignore property
Finally add the following line to it
Note that the slashes are always UNIX style even if you are on windows and that there are no leading or trailing slashes or asterix
This will ignore the NodeUtility \ node_modules folder and any directories or files in that folder
IMPORTANT: When committing from Mendix the tab changes on disk will show the ignored files. This is an error in the Mendix UI. The files will not be committed which you can confirm by downloading a fresh copy of the model.
Hope this helps,