Development Tools Introduction to Git First Commits First Commits

Bibiana Balbuena Barbosa
Bibiana Balbuena Barbosa
14,768 Points

How do I lunch nano? git commit is not working

I'm at my Ubuntu terminal, when I type git commit it doesn't lunch nano, it shows the message: On branch master Untracked files: bronze.html

nothing added to commit but untracked files present

2 Answers

You haven't told git what to commit. If the file is already checked in, and has since been committed, you could do git commit filename

However . the most typical is probably to do git add filename followed by git commit filename. Or if you have already done the git add filename, you could also enter git commit -a, which will commit all changes you have previously added to the staging area.