I
I
ince2020-10-28 20:54:36
git
ince, 2020-10-28 20:54:36

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

2 answer(s)
G
GavriKos, 2020-10-28
@GavriKos

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

V
Vitaly Karasik, 2020-10-29
@vitaly_il1

https://docs.github.com/en/[email protected]/ac...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question