Domanda

I have composer library hosted as a package on Packagist through GitHub. The repository includes a directory named sample with some samples on how to use the code and this directory is really not needed when using the package.

Is there a way to have this directory ignored when you do composer update/install?

È stato utile?

Soluzione

You technically can using the .gitattributes and the export-ignore directive. See http://git-scm.com/book/ch7-2.html#Exporting-Your-Repository for more details.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top