On 8 Nov 2013 07:51, "Ivan Ionut" <ivan.ion...@gmail.com> wrote:
> In the example of the book from
http://git-scm.com/book/en/Git-Internals-Git-Objects  after typing the
> sudo echo 'test content' | git hash-object -w --stdin
> i'm getting this error
> error: insufficient permission for adding an object to repository
database .git/objects
> fatal: Unable to add (null) to database
> but as  root i have the permisions to read, right, execute to those files
on that directory.
> How do I fix this?

Also put a sudo in front of the git command after the pipe.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to