'Why Jenkins returning http 500 while adding git repository?

I am trying to add a git repository in a freestyle job. However after adding the repository, seeing the error described in the snip provided. HTTP 500 error



Solution 1:[1]

In Jenkins, go to Manage Jenkins > Global Tool Configuration > Git. There, determine the path to git.exe from just that to something like C:\Program Files\Git\bin\git.exe—or wherever you have your git.exe file.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney