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! While you're at it, check out some resources Treehouse students have shared here.

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 Git Basics Getting Started With Git Staging Our Changes

I have no idea what I am doing wrong here on this Git Basics question.

For this question my answer is git add prototype.html then git commit - m. But I keep getting an error message. Thanks in advance for your help.

3 Answers

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
21,058 Points

if you wan to find the status of your repository you need to type

git status

git-status - Show the working tree status

Enjoy Coding

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

In order, the commands to complete the tasks are:

git status
git add README.md
git add prototype.html
git commit -m "any message you want"

Notice that there's no space between the - and the m on that -m flag. That might be the problem.

For some reason I am still getting an error message even after doing what you said.

Jay McGavren
Jay McGavren
Treehouse Teacher

There are 4 tasks in the challenge; which of the 4 tasks are you getting an error on? What is the error message you're getting? Can you copy the command you're submitting and paste it into this forum thread?