views:

20

answers:

1

Hello,

I am trying to commit my stuff to github from eclipse on ubuntu. But I get the message:

Committing changes has encountered a problem. 
Committing failed
Prepairing trees /var/www/project/public/.htaccess.save (permission denied)

I don't know how to solve this problem.

Can anyone help me?

+1  A: 

It seems a simple Access Right issue, as seen in other instances.
Maybe .htaccess.save is part of your Git repository, while in fact it shouldn't?
If that is the case, you could

  • first git rm it (after saving it), and commit a new revision without that directory
  • add the directory to your .gitignore file
  • restore the .htaccess.save directory.
  • try to push to GitHub.
VonC