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

Lucas Garcia
Lucas Garcia
6,529 Points

Many errors with git add metals.html

When I try and run the git add metals.html command I receive the follow errors: error: insufficient permission for adding an object to repository database .git/objects error: medals.html: failed to insert into database error: unable to index file medals.html fatal: adding files failed

Thank you.

Ân Nguyễn Hoàng
Ân Nguyễn Hoàng
Courses Plus Student 3,980 Points

Hi, Lucas Garcia! I had a same bug like you. I think in the future teamtreehouse's engineer will fix it. For now, I'd suggest doing this from your own machine. Hope this helps!
p/s: maybe in the next time, you can use the markdown for uploading the question. For example:

error: insufficient permission for adding an object to repository database.git/objects  
error: medals.html: failed to insert into database  
error: unable to index file medals.html
fatal: adding files failed

1 Answer

Spencer Renfro
PLUS
Spencer Renfro
Courses Plus Student 11,133 Points

I had issues with mine, but this is what worked for me: git add medals/medals.html Mine was not able to find the medals.html file without going through the medals folder first.