I'm trying to push some files to my repo and ignore some folders but i want want just one file in a sub folder and exclude all files in that sub folder with exception of just one file. The folder structure is like
Apps->Features->username.php
Apps is the main folder and has other sub folders, features is a sub-folder and username.php is a file in it with and files. So what i want to achieve is to exclude all files in the features folder with exception of username.php