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

Christine Vallestad
Christine Vallestad
2,987 Points

Git status no medals showing

Hi

I do not see the file medals.html in my git when I run the git status command. I only get bronze.html to show after I run the command git status, but the teacher's console shows bronze.html and medals.html.

What am I doing wrong? Thank you.

My Code:

treehouse:~/workspace$ ls
medals

treehouse:~/workspace$ cd medals

treehouse:~/workspace/medals$ ls
bronze.html medals.html

treehouse:~/workspace/medals$ git init
Reinitialized existing Git repository in /home/treehouse/workspace/medals/.git/

treehouse:~/workspace/medals$ ls
bronze.html medals.html

treehouse:~/workspace/medals$ ls -a
. .. bronze.html .git medals.html

treehouse:~/workspace/medals$ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)

    bronze.html                                                                                          

nothing added to commit but untracked files present (use "git add" to track)

Here is the video lesson First Commits video