All jobs / Frontend / web developer / Tooling

Frontend / web developer interview question · 0–1 years

How do you commit a CSS fix that accidentally includes a .env file in the working tree?

The strongest answer

Leave the secret out of the commit, add .env to gitignore, and rotate the key if it was ever committed

Why it works

Secrets do not belong in git. Unstage, ignore, rotate if they leaked.

What a good answer covers

Answers that fall short

Who gets asked this

More Tooling questions