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

Seokhyun Wie
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,593 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

James Croxford
James Croxford
12,573 Points

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

Nelson J
Nelson J
7,411 Points

How do you reset it?