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!

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

Iseel Ise
Iseel Ise
4,931 Points

insufficient permission for adding an object to repository database

When I try to

treehouse:~/workspace/medals$ git add medals.html

then an error message appears :

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

I set up the git repository, I verified it was in medals file with ls -a and when I checked with get status I was informed :

On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
nothing added to commit but untracked files present (use "git add" to track)

Does someone have an idea where the issue is from ?

Thank you a lot :)

I am experiencing the same issue

6 Answers

It looks like there may be a problem with the workspace for the introduction to git workspace. It's not quite clear, but it appears the workspace is set up so that you wind up creating files that you don't have permission to access. Not sure what is going on, although it appears that maybe the container security may be messed up. I have put in a support request, I would suggest you do the same. Use the Support tab to put in a request. Treehouse does not seem to look at the Community. Be sure to give full details from the beginning.

My support request didn't get anywhere. You may want to try yourself.

still broken. I guess that's one way to make sure people have to stay past the "Free 7 day trial".

git add still broken.

Problem still persists on Feb 26

Problem persists 10 mar