Git · Junior · Question 47 of 75

You accidentally committed an API key and pushed it. What must you do first?

Explanation

Once pushed, assume it's compromised: bots scan public repositories within minutes. A new commit doesn't remove the key from history, and rewriting history doesn't help clones others already have.

Further reading

Problem with a question

Git · Junior · question 47

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz