Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,688 Points

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

Make sure you put the message in quotes.