Protect Secrets and Generated Files
A local test run left artefacts behind and someone staged the production env file. Get the secret out and make the repository keep it out.
Project labbeginner~25 minFree
What you'll do
- ✓Unstage a secret before it is committed
- ✓Write ignore rules for files, directories and globs
- ✓Prove a rule with git check-ignore
- ✓Commit safe example config instead of real config
Lab outline
- 01Near miss
- 02Unstage
- 03Ignore rules
- 04Commit safely
Before you start
- Staging and unstaging (the previous lab)
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.