Hello, As I need to access some of my git repositories behind a corporate company firewall, I use the http access method. And, as I don't want my passwords to be sent in clear text over the network, I have configured my web server to use « Digest » authentication instead of the old « Basic » authentication. This authentication method is now well handled by modern software. Unfortunately, current git version only handles « Basic » authentication. When attempting to access my repository, I get the following error message: error: The requested URL returned error: 401 while accessing http://XXX@YYY.ZZ/test.git/info/refs The web server, on its side, has refused the transaction because of the wrong authentication method used: Digest: client used wrong authentication scheme `Basic': /test.git/info/refs The attached patch makes git configure libcurl to negotiate the most suitable HTTP authentication method. Thanks to that patch, I manage to clone and fetch my git repository hosted on my web server requesting an authentication through the « Digest » method. Lénaïc.