Jay
Jay

Reputation: 5

Dealing with secrets and source control

If I create a repo on github and include a secrets.js file in my project and include it in my .gitignore file and store all of my "secrets" in it, am i correct to assume that the public will not have access to those secrets?

Upvotes: 0

Views: 45

Answers (1)

Orion
Orion

Reputation: 245

  • Git does not track the files which are included in .gitignore file and those files won't be shown on github, so your secrets wont be access by public

Upvotes: 1

Related Questions