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 Introduction to Git First Commits First Commits

Cory Musick
seal-mask
.a{fill-rule:evenodd;}techdegree
Cory Musick
Front End Web Development Techdegree Student 8,545 Points

How 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

If 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.

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

If 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.