@Override
    public void destroy() {
        if (gitInstance != null) {
            gitInstance.close();
        }
    }
This is {@link DefaultGitRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/DefaultGitRepository.java