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. 
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. 
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.
I too had the same error. Please use Java Version 11 instead of Java Version 8. Also, install only the suggested plugins for Git.