Beginner
Git & Version Control
Q39 / 100
What is the purpose of the "-m" flag in "git commit -m 'message'"?
Correct! Well done.
Incorrect.
The correct answer is B) It allows the commit message to be specified directly on the command line, instead of opening a text editor
B
Correct Answer
It allows the commit message to be specified directly on the command line, instead of opening a text editor
Explanation
Without "-m", "git commit" opens the configured text editor for writing a commit message; "-m 'message'" provides it inline, which is convenient for short, single-line messages.
Progress
39/100