Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Task 7 out of 11

What I am doing wrong? I answered with the git commit -a -m "Added changes to the repository". it say it is a wrong command. I even rewatched the video a few times and still did not help.

2 Answers

Bekah McDonald
Bekah McDonald
10,527 Points

Hi Jonathan

When you commit, you don't need to use -a.

git commit will commit ALL staged changes, so you can just use git commit -m followed by your message.

Does this help?

Thanks. I will try that method.