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 trialCory Musick
Front End Web Development Techdegree Student 8,545 PointsHow do I open the editor?
I've commit both of the files just like the video says but I can't get the editor to open. I typed (git commit) without the -m like instructed to get to the editor but instead I get the following.
treehouse:~/workspace/medals$ git commit
On branch master
nothing to commit, working directory clean
2 Answers
Jamie Reardon
Treehouse Project ReviewerIf you run git status to begin with, does it say there's a file staged for commit? If it says the same nothing to commit, working directory clean
Then you have no modified files. Run git log to see the latest commit.
If you do however see the message: file staged ready for commit. Then you are at the right stage to run the command.
Cory Musick
Front End Web Development Techdegree Student 8,545 PointsThank you. It still said directory clean. I'll go back and try again.
Jamie Reardon
Treehouse Project ReviewerIf you have already committed the files like you have said you have done in your OP, then you won't be able to run git commit again.
The git commit subcommand can only be used when there is one or more files that are staged for commit.