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 trialSander Hagenaars
4,583 PointsTask 3 - commit index.html
Im trying with this command: git commit -m "added index.html file" index.html is not working? I dont get why it isnt working...
2 Answers
Derek Scollon
8,422 PointsHave you checked that the file is added first before trying to commit?
git add index.html
You may also get a clue to the problem by running
git status
If you need the command to add the file then commit it all in one command, try using the -a flag...
git commit -a -m "added index.html file"
Sander Hagenaars
4,583 PointsIt seems git commit -m "added index.html" was the answer after all and im just retarded ;)
Sander Hagenaars
4,583 PointsSander Hagenaars
4,583 PointsIts a part of a follow up quiz (a task) so I cant run any of those commands. I just need to type in the right answer. Appearently git commit -m "added index.html file" index.html, git commit, git commit index.html - none of these are correct :)