Git · Middle · Question 31 of 75
What does git log -S "apiKey" find?
- 1Files that currently contain that string
- 2Commits whose message contains that string
- ✓Correct answer: Commits that added or removed that string
Explanation
The "pickaxe" search finds when a piece of code appeared or disappeared, even if it's gone now. For messages use --grep, for current files git grep.