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

Seokhyun Wie
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 Points

(06:20) "git commit" command does not open the NANO text editor on my MacBook Pro

The "git commit" command should open the nano as explained, but I see this message only:

Brandons-MacBook-Pro:medals brandonwie$ git commit On branch master Untracked files: bronze.html

nothing added to commit but untracked files present

**all other procedures are done successfully

I get the same message trying this myself using workspaces. I rewound the video a little and Jay says:

"Here I've reset my workspace to the state that it was in before the commit, and now I'll run git commit by itself."

So unless you have reset your git to before we committed medals.html, this message will appear, as medals.html is already committed, and we haven't added bronze.html to the staging area yet (aka it is an untracked file). So presumably Jay has just reset his workspace for the purposes of showing this alternate method of committing a file.

1 Answer

How do you reset it?