package com.sf.sgs.smp.manager.test;
import org.eclipse.jgit.api.*;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.JGitInternalException;
import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
/**
-
JGit API测试
*/
public class gitTest {public String remotePath = “http://user@10.1.2.1:8080/project.git”;//远程库路径
public String localPath = “D:\project\”;//下载已有仓库到本地路径
public String initPath = “D:\test\”;//本地路径新建/**
-
克隆远程库
-
@throws IOException
-