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.
Ignore a git directory in composer package
-
29-05-2022 - |
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
?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow