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

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.