Git behind a proxy & large commits.

Today I finally tried to pull a git repo with my new PC. It’s not the first time, but again the same problem came into my way: Git over a proxy.

If you sit behind a proxy, just open your bash and type the following:

git config --global http.proxy http://your.proxy.server

You can also specify a port or your authentication-data for digest-authentication:

git config --global http.proxy http://name:password@your.proxy.server:port

To add a SSL-Proxy, you need to use the setting https.proxy.

Another problem that occurred to me, was that I had a reeeeeeaaaaal big commit. It was several megabyte large, so git had a problem with it. It just said

error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

All I needed to do, is setting the post-buffer higher:

git config http.postBuffer 524288000

That means that I can now push up to 500 MB. More than I will ever need.

… And I hope that I never need to pull 500 MB.

 

Advertisements
Tagged , , ,

One thought on “Git behind a proxy & large commits.

  1. best page rage checker says:

    Wow that was strange. I just wrote an really long comment but after I clicked submit my
    comment didn’t show up. Grrrr… well I’m not writing all that over again.
    Regardless, just wanted to say excellent blog!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: