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 Staging Changed Files

Anders Axelsen
Anders Axelsen
3,471 Points

Where did my bronze.html go?

As I was trying to access the nano editor in "First Commits", I had to add bronze.html in order to do so. Now, when I try to add bronze.html, it doesn't appear when I write the command, git status. When I then do git commit -m "Add bronze medals", logically, I get this output:

treehouse:~/workspace/medals$ git commit -m "Add bronze medals"
[master ca8a7c3] Add bronze medals                                                                    
1 file changed, 3 insertions(+)    

I would like to know what happened to bronze.html. Is it still within my git repository?

1 Answer

Ari Misha
Ari Misha
19,323 Points

Hello there! As per your git message, it seems like you did commit the "bronze.html" in the first commit, then you made some changes and committed again. That's why it said 1 file changed, 3 insertions, aka you changed something in 3 lines in the same file which was committed before. I dunno if it's still in your git repo or not, but it defo can be found in your local git repo, but not in Remote repo unless you pushed it. I hope it helped. (:

~ Ari

Anders Axelsen
Anders Axelsen
3,471 Points

Appreciated! Makes sense, and I'm halfway there in understanding this process.