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 trialBinu Alexander
4,081 Pointsmy command is git commit README.md ... It is not working
What am i doing wrong ?
2 Answers
Tracy Trathen
10,468 PointsYou didn't use the flags needed to add the file and include a message. That can be done in one shot like this:
git commit -a README.md -m "message to go with the commit"
Here's a link to some really great git documentation: http://git-scm.com/documentation/ that might help you too.... (I refer to this a lot when I can't remember a particular flag, etc.)
Binu Alexander
4,081 Pointsthanks
Tracy Trathen
10,468 PointsTracy Trathen
10,468 PointsI may have the order wrong in terms of when you put the file name... because when I use git, I break those commands into multiple commands like so:
Add the file (this tells git that you want the file tracked):
git add FILENAME
(where filename is the name of the file... so in your case it would be: git add README.md)
Commit the file (with a succinct message):
git commit -m "concise message about the commit here"