In my case, I simply updated the Git plugin in Jenkins and then restarted Jenkins to apply the changes.