Search code examples
gitoverleaf

Updating overleaf project using git


I have an overleaf project that I am working on. I have cloned it to my local computer using git clone. To this, I have added few image files to be used in the project and I want to upload it back to the overleaf server. I have done the following -

git stage -A
git commit -m '3 new images'
git push

This give the error

...
Writing objects: 100% (114/114), 45.27 MiB | 2.85 MiB/s, done.
Total 114 (delta 91), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (91/91)
remote: error: internal error
remote:
remote: hint: There was an internal error with the Git server.
remote: hint: Please contact Overleaf.
To https://git.overleaf.com/614f7fdc1d026c7c766f3612
 ! [remote rejected] master -> master (internal error)
error: failed to push some refs to 'https://git.overleaf.com/614f7fdc1d026c7c766f3612'

How can I resolve this issue?


Solution

  • I was able to resolve this issue with the help of Dan MacKinnon's comment.

    There are size limitations on using Git with Overleaf. If the file size limitations are not violated, it is the compiling time. The work around for compiling time is to reduce the number of changes in each commit.