JGit clone repository
问题 I'm trying to clone Git repository with JGit and I have problem with UnsupportedCredentialItem. My code: FileRepositoryBuilder builder = new FileRepositoryBuilder(); Repository repository = builder.setGitDir(PATH).readEnvironment().findGitDir().build(); Git git = new Git(repository); CloneCommand clone = git.cloneRepository(); clone.setBare(false); clone.setCloneAllBranches(true); clone.setDirectory(PATH).setURI(url); UsernamePasswordCredentialsProvider user = new