Search code examples
gitgitlabtortoisegit

Git Push New Branch to Origin Fails during compression


I have a large personal repo which I use to keep my daily work files. I started using it since my laptop crashed last year and OneDrive could not restore all files. Particularly it had trouble with long filepaths. Obviously this repo has grown over time. I remove older files after a few months. Every day, a new branch is created and that day's changes get pushed to the repo.

From yesterday, this process is failing. I have removed some files, reducing total size by ~40%, but it is still failing. The compression stage of the push goes to 99%, number of files reach 5129-5137 (the number varies in that range) and then the remote end hangs up, connection to the remote host is cut off. I have tried in both git bash and tortoisegit, screenshot for the latter posted below.

How can I resolve this issue?

TortoiseGit Screenshot


Solution

  • I followed the following answer in a separate question regarding keeping OpenSSH connections alive in Windows.

    ServerAliveInterval