Development Tools Introduction to Git First Commits First Commits

Brandon Wie
Brandon Wie
Full Stack JavaScript Techdegree Student 11,420 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
7,106 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 Wie
Brandon Wie
Full Stack JavaScript Techdegree Student 11,420 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
5,984 Points

How do you reset it?