Sunday 25 February 2018

HttpRequestException encountered while pushing on Git


This error appeared after removal of weak cryptographic standards from Git. There are some algorithms that are already depreciated. In the latest version, they have removed all  the depreciated algorithms . They have upgraded security and disabled the old version Transport Security Layer (TLSv 1/TLSv1.1). 


In this post, I will not explain the error in details. I will share probably the best way to resolve the error. You may know about the error in details here.

The best option to resolve this error is to upgrade your git version. Follow the steps below to upgrade: 

Step 1: Download the Git installer for windows from here
Step 2:  Run the installer and install the git in your previous location (example: C:\Program Files\Git) where you installed git before.

(note: It will remove all the custom settings that you have in your current git version)

Tips: To know the Git folder path, type the following command in your command prompt (cmd) : 

 where git 

By now, you are done with installation of the latest version git in your machine. You can check the version. Type the command in your cmd :

 git --version


Don't hesitate to ask me in comment section.

How to upgrade latest version of Git in SourceTree for Windows:



In my first post, I have shown the steps to install the latest version of Git in your machine. In this post, I will show you how to use installed latest version of Git (which we have done in first post) from your machine to source Tree.

It will not take more than 2 minute to upgrade Git in your SourceTree.

step 1: Open SourceTree and tab on tools and the select options.



step 2: Tab on Git. At the bottom,  you can view whether you are using system git or embedded git. To upgrade click on Use System Git and click Ok for completion.



Now, you can check the latest version of Git in soucreTree. Go to terminal in your soucreTree and type:

 git --version. 


Ask me in comment section.