I'm trying to push a git repository to MS Azure, but it keeps giving the following error.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
"The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server."
The pack file is almost 1GB, so I copied the repo and split it into separate max-100MB files.
git repack --max-pack-size=100m -a
The Azure repo is empty and does not have a file size limit set.
I can push the repo to GitHub without issue (works with both the 1GB pack file and the 100MB pack files), but I'd like to use MS Azure.
I successfully pushed another repository to Azure that was larger (but the pack file was smaller).
Also here's the whole output of the unsuccessful push (the master branch is called "Production").
$ git push --set-upstream origin Production
Enumerating objects: 165849, done.
Counting objects: 100% (165849/165849), done.
Delta compression using up to 12 threads
Compressing objects: 100% (64006/64006), done.
Writing objects: 100% (165849/165849), 878.37 MiB | 94.38 MiB/s, done.
Total 165849 (delta 115879), reused 149929 (delta 100420), pack-reused 0
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
Here's the successful GitHub push output
$ git push --set-upstream origin Production
Enumerating objects: 165849, done.
Counting objects: 100% (165849/165849), done.
Delta compression using up to 12 threads
Compressing objects: 100% (64006/64006), done.
Writing objects: 100% (165849/165849), 876.39 MiB | 94.63 MiB/s, done.
Total 165849 (delta 115882), reused 149926 (delta 100420), pack-reused 0
remote: Resolving deltas: 100% (115882/115882), done.
To (GitHub link)
* [new branch] Production -> Production
Branch 'Production' set up to track remote branch 'Production' from 'origin'.
Do the pack files somehow count as one large file? There's nothing in this repo that exceeds 100 MB after it's been repacked.
Btw, I couldn't find a good tag to list here.