I usually put /node_modules
in my .gitignore
file.
# .gitignore
/node_modules
But this time, I would like to include one specific node_modules-package in my git version control.
I.e when I commit and push to remote, the node_modules folder should be included, but all modules inside it are gone, except my-package
under the organization @my-organization
. I.e:
/node_modules
/@my-organization
/my-package
/<files and folders>
How can I modify my .gitignore
to accomplish this?