Github Push Error: RPC failed; result=22, HTTP code = 413

前端 未结 17 903
迷失自我
迷失自我 2020-11-28 02:27

stupid issue with Github going on right now. I have a decent amount of changes (~120MB in size), when I attempt to push, this is what happens:

error: RPC fai         


        
17条回答
  •  情话喂你
    2020-11-28 02:56

    Do you use https links instead of ssh links? Because the https link is limited by the size of the upload of HttpServer (such as Apache, Ngnix), there is no such restriction when using ssh.

    Use the following method to switch to the ssh link.

    1. Open terminal.
    2. Switch to your project's working directory.
    3. Get the name of the remote repository
    $ git remote -v
    origin  https://github.com/[user_name]/[project_name].git (fetch)
    origin  https://github.com/[user_name]/[project_name].git (push)
    
    1. Modify the git address to ssh link.
    git remote set-url origin git@github.com:[user_name]/[project_name].git
    

    If you determine the remote repository name, proceed directly to step 4. Now, you can do the push operation happily.

提交回复
热议问题