Development Tools Introduction to Git First Commits First Commits

Paul Dangal
Paul Dangal
5,988 Points

Finally, commit the staged file, with a message of "Add chapter 1". Rather than letting Git launch an editor, specify yo

Finally, commit the staged file, with a message of "Add chapter 1". Rather than letting Git launch an editor, specify your commit message on the command line: use the -m command line option, and specify your message between "quotation marks".

Type in your command below, then press Enter.

Bummer: You need to run the "commit" subcommand.

git commit-m "Add chapter 1"

1 Answer

Shaun Kelly
Shaun Kelly
34,392 Points

To commit with a message: git commit -m "<commit_message>".

Make sure there is a space between commit and -m

Tlaleng Ramoroke
Tlaleng Ramoroke
1,627 Points

git commit -m "chapter1" i being getting this wrong ,how do i get it correct?