import org.eclipse.jgit.api.AddCommand;
import org.eclipse.jgit.api.CommitCommand;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.PushCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
/**
* Created by kxw on 2015/9/18.
* { @link}
*/
public class TestJgit {
@Test
public void test() throws IOException, GitAPIException {
//在用户的账号配置了ssh,即可提交
FileRepositoryBuilder builder = new FileRepositoryBuilder();
String projectURL = System.ge