Beginner Git & Version Control
Q25 / 100

What is the purpose of "git rm"?

Correct! Well done.

Incorrect.

The correct answer is A) It removes a file from both the working directory and stages the deletion for the next commit

A

Correct Answer

It removes a file from both the working directory and stages the deletion for the next commit

Explanation

"git rm <file>" deletes the file from the working directory and stages that removal, so the deletion will be recorded in the next commit.

Progress
25/100