here is error :
git add .emacs
error: insufficient permission for adding an object to repository database .git/objects
error: .emacs: failed to insert into database
error: unable to index file .emacs
fatal: adding files failed
how can I fix it ? what’s wrong with it ?
That is your problem. For some reason or another, Git is having trouble writing to
.git/objects– typically this means it is owned by another user and doesn’t have the proper permissions.Try seeing what permissions the folder currently has by running
ls -l .git/objects. Then, you canchmodorchown(or both) as necessary.