Development Tools Introduction to Git First Commits First Commits

Brandon Seokhyun Wie
Brandon Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,586 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
10,359 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

Brandon Seokhyun Wie
Brandon Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,586 Points

@James Croxford Thanks for the comment. I also realized it after watching it again. Have a good day and thank you for your time again.

Nelson J
Nelson J
7,201 Points

How do you reset it?