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

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.