Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1030057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:38:28+00:00 2026-05-16T12:38:28+00:00

I cloned a git repo that I have hosted on github to my laptop.

  • 0

I cloned a git repo that I have hosted on github to my laptop. I was able to successfully push a couple of commits to github without problem. However, now I get the following error:

Compressing objects: 100% (792/792), done.
error: RPC failed; result=22, HTTP code = 411
Writing objects: 100% (1148/1148), 18.79 MiB | 13.81 MiB/s, done.
Total 1148 (delta 356), reused 944 (delta 214)

From here it just hangs and I finally have to CTRL + C back to the terminal.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:38:28+00:00Added an answer on May 16, 2026 at 12:38 pm

    I had the same issue and believe that it has to do with the size of the repo (edited- or the size of a particular file) you are trying to push.

    Basically I was able to create new repos and push them to github. But an existing one would not work.

    The HTTP error code seems to back me up it is a ‘Length Required’ error. So maybe it is too large to calc or greated that the max. Who knows.

    EDIT

    I found that the problem may be
    files that are large. I had one update
    that would not push even though I had
    successful pushes up to that point.
    There was only one file in the commit
    but it happened to be 1.6M

    So I added the following config change

    git config http.postBuffer 524288000
    

    To allow up to the file size 500M and
    then my push worked. It may have been
    that this was the problem initially
    with pushing a big repo over the http
    protocol.

    END EDIT

    the way I could get it to work (EDIT before I modified postBuffer) was to tar up my repo, copy it to a machine that can do git over ssh, and push it to github. Then when you try to do a push/pull from the original server it should work over https. (since it is a much smaller amount of data than an original push).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have cloned a svn project repo using git-svn. When I fetch commits, how
I have a couple simple rake tasks hosted at github that I would like
I have a git repo that I need to get working without conflicts. It
I have ~30 git repositories cloned from github that I use for web/ruby/javascript development.
I have created a bare git repo (lets call it repo #1) and cloned
I have a local git repo cloned from bitbucket.com I do a lot of
I cloned a project from github with git clone --mirror . That left me
I have cloned a git repo which has my emacs config files in. I
So I cloned a repo on github locally. I didn't have any rights on
I have a cloned git-svn repo. Using "git svn rebase" will get me latest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.