Development Tools Introduction to Git First Commits First Commits

Introduction to Git Challenge Task 4 of 4

I had no problem with the first 3 but i am having an issue with this 4th challenge.

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".

1 Answer

Sean T. Unwin
Sean T. Unwin
28,655 Points

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

Make sure you put the message in quotes.