title: gitlab push error: RPC failed; HTTP 524 curl 22 The requested URL returned error: 524
body: <p>Following my <a href="https://stackoverflow.com/questions/70065172/clear-hiiden-large-files-in-gitlab-repo/70067140#70067140">previous question</a> about a way to clear 'hidden' large files in <code>gitlab</code> repo. I proceeded as follows:</p>
  <p>Clone repo using <code>mirror</code> flag:</p>
  <pre><code>$ git clone --mirror git://example.com/my-large-repo.git 
  </code></pre>
  <p>Run the BFG to clean my repository:</p>
  <pre><code>$ java -jar bfg.jar --strip-blobs-bigger-than 50M my-large-repo.git
  
  $ cd my-large-repo.git
  $ git reflog expire --expire=now --all &amp;&amp; git gc --prune=now --aggressive
  Enumerating objects: 1306, done.
  Counting objects: 100% (1306/1306), done.
  Delta compression using up to 8 threads
  Compressing objects: 100% (1238/1238), done.
  Writing objects: 100% (1306/1306), done.
  Building bitmaps: 100% (53/53), done.
  Total 1306 (delta 242), reused 961 (delta 0), pack-reused 0
  </code></pre>
  <p>Everything seems to work at this point, but then I cannot push the clean <code>local</code> to <code>remote</code>.</p>
  <pre><code>$ git push
  Username for 'https://gitlab.com': xxx@gmail.com
  Password for 'https://xxx@gmail.com@gitlab.com': 
  Enumerating objects: 1306, done.
  Writing objects: 100% (1306/1306), 2.02 GiB | 16.76 MiB/s, done.
  Total 1306 (delta 0), reused 0 (delta 0), pack-reused 1306
  error: RPC failed; HTTP 524 curl 22 The requested URL returned error: 524
  send-pack: unexpected disconnect while reading sideband packet
  fatal: the remote end hung up unexpectedly
  Everything up-to-date
  </code></pre>
  <p>I am not sure why this keeps happening.</p>