Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Client on OS X Commit Fail ("Failed to add file ...)

I am trying to commit changes I have made to my code (as usual) from my GitHub client on my Mac OS X Mavericks machine. I added a new package to my project (it's a Laravel project, and I added the package Rocketeer. I also made a few config changes).

I am getting the error:

Failed to add file laravel-master/vendor/anahki   

When I uncheck this file in the commit list, it then goes to another file showing this error.

Failed to add file laravel-master/vendor/illumin 

Any idea what is going on? I have never run into these issues. Thank you.

EDIT:

I have narrowed this down to two files that are not being allowed to commit (this is for a Laravel project):

These are the errors I get when I try to commit these two folders/files:

Failed to add file laravel-master/vendor/illuminate/remote/Illuminate/Remote/ to index.  Failed to add file laravel-master/vendor/anahkiasen/rocketeer/ to index. 
like image 245
user1072337 Avatar asked Apr 25 '14 23:04

user1072337


1 Answers

In my case, there was already a .git directory from another imported third-party git repository. I had to removed it, anything worked well.

like image 149
user3366948 Avatar answered Oct 23 '22 20:10

user3366948