Upload large repo

I have a repo with a removed branch. The branch is accessible through the activity log and i am trying to recreate this branch. I downloaded the files and am trying to re-upload the branch but i get stuck with connection to gitlab.com closed by remote host. fatal: the remote end hung up unexpectedly. i suspect that this is due to a timeout because of the repo-size which is approx 4gb.

I found similar problems where the suggested solution was to use “git config http.postBuffer 524288000” but it didnt help me.

I have some it-issues as well, which means that i downloaded the repo and transferred it via mobaXterm to a linux server (i cannot get access to GIT on my current setup). From here I simply made a new branch, then i switched to the new branch, committed the branch and attempted to push with git push -u origin “branch name”.

I hope you can help me and thanks in advance