Make sure to give git path in Dashboard --> Manage Jenkins --> Tools --> Git Installations --> C:\Program Files\Git\bin\git.exe
You need to git.exe path, if you had given only until \bin then it would error.