I have a folder named lib in the root of the repository and another folder named lib in dist folder.
I'm trying to use .gitattributes
file to exclude all folders and files other than dist so that anyone downloading as zip or tarball will only git the distribution files
My trouble is the following .gitattributes
file also removes the lib folder inside the dist folder
.gitattributes export-ignore
.gitignore export-ignore
Cakefile export-ignore
swagger-ui.json export-ignore
bin export-ignore
lib export-ignore
node_modules export-ignore
src export-ignore
I tried adding a slash before lib, after lib, nothing seems to help
How to I make it work?