In my project I want to use a .npmrc
file to point to a private repository. From the documentation for npmrc we read:
NOTE: Because local (per-project or per-user)
.npmrc
files can contain sensitive credentials, they must be readable and writable only by your user account (i.e. must have a mode of 0600), otherwise they will be ignored by npm!
unfortunately git is not honouring the file permission 0600.
So: how to store the .npmrc
file in git?