Answer the question
In order to leave comments, you need to log in
How to hide files in a repository, leaving them for deployment?
There is a repository with a project, several people are working on it.
I'm a maintainer, the others help.
The repository has secret keys and other files that I would not want to show anyone.
I can’t add them to gitignore, because these files are needed to auto-deploy the application.
How to proceed?
Answer the question
In order to leave comments, you need to log in
The repository SHOULD NOT contain such files.
These files should be added at the deployment stage, for example. Or be already on the server and be loaded, for example, through environment variables.
But not in the repository
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question