I know this has been asked a lot on StackOverflow but I did not manage to get any solution to solve my problem.
My coworker assigned me on a new project. The application is hosted on test Debian server with git installed.
First I have created my branch :
git checkout -b mybranch
Then I have done small modifications to some files.
When I tried to push it to Github (using my github account)
git add myfile.php
git commit -m "my first commit"
git push origin mybranch
I get this error :
fatal: Out of memory, malloc failed
I don't understand what this mean. The total size of the files I tried to push is 156Ko. Moreover the total size of the project is only 10,9Mo.
I tried to reboot the server but the same happen.
When I run free
on the server I get :
total used free shared buffers cached
Mem: 505312 239532 265780 0 51576 71580
-/+ buffers/cache: 116376 388936
Swap: 0 0 0
My coworkers never had this problem before, even on the same test server.
Can someone highlight me on the reason of this error and a possible workaround?
Thanks in advance.