Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Visual Studio Tools for git push error

I'm trying to get used to the VS git plugin. I'm using it with bitbuket and GitHub remote repositories.

Sometimes i get the following error :

An error was raised by libgit2. Category = Net (Error).
Chunked encoding upload is not supported on the HTTP/1.0 protocol.

Is someone knowing how to avoid this error ?

like image 409
Sidewinder94 Avatar asked May 22 '13 14:05

Sidewinder94


People also ask

How do I force git push in Visual Studio?

To enable force push, go to the top level menu, select “Git > Settings” and check the “Enable push --force” option. I hope this helps!

Why is push not working in git?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

How do I enable git changes in Visual Studio?

The new Git experience is the default version control system in Visual Studio 2019 from version 16.8 onwards. However, if you want to turn it off, you can. Go to Tools > Options > Environment > Preview Features and then toggle the New Git user experience checkbox, which will switch you back to Team Explorer for Git.


1 Answers

The problem came from the proxy server i had to use at work which didn't support the HTTP/1.1 protocol.

Our sysadmin confirmed me that he was using squid 2.7 and he didn't support HTTP/1.1.

Thank's again for the tip.

like image 147
Sidewinder94 Avatar answered Oct 19 '22 15:10

Sidewinder94