Remove a Committed Secret
Untrack a leaked secret and ignore it.
A intermediate Git challenge worth 10 points. Solve it hands-on in a real Git environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: secrets.env (an AWS key) was committed with app.py.
Task: Untrack secrets.env from the latest commit, add it to .gitignore, keep app.py tracked.