Development Tools Introduction to Git First Commits First Commits

Elise Pitel
Elise Pitel
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 :)

Jasmine Graber
Jasmine Graber
9,419 Points

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