Beginner Git & Version Control
Q38 / 100

What does the "git mv" command do?

Correct! Well done.

Incorrect.

The correct answer is B) It renames or moves a file and stages that change for the next commit, in a single step

B

Correct Answer

It renames or moves a file and stages that change for the next commit, in a single step

Explanation

"git mv old_name new_name" is a convenience command equivalent to running "mv" and then "git add" for both the old (removed) and new paths, staging the rename in one step.

Progress
38/100