Git · Junior · Question 57 of 75
What does git clean -n do?
- 1Removes staged changes from the index
- 2Deletes all untracked files immediately
- ✓Correct answer: Shows which untracked files would be deleted
Explanation
-n is a dry run; -f actually deletes. Untracked files aren't in Git, so once cleaned they can't be recovered from it.