Intermediate Git & Version Control
Q63 / 100

What is the purpose of "git clean"?

Correct! Well done.

Incorrect.

The correct answer is A) It removes untracked files (and optionally directories) from the working directory, which "git status" would list as untracked

A

Correct Answer

It removes untracked files (and optionally directories) from the working directory, which "git status" would list as untracked

Explanation

"git clean -fd" forcibly removes untracked files and directories — useful for clearing build artifacts, but it permanently deletes files not tracked by Git, so it should be used with care (often after a "git clean -n" dry run).

Progress
63/100