public class GitControl extends Object
Constructor and Description |
---|
GitControl(String localPath,
String remotePath) |
Modifier and Type | Method and Description |
---|---|
void |
addToRepo() |
void |
branch(String name) |
void |
cloneRepo() |
void |
commitToRepo(String message) |
void |
pullFromRepo() |
void |
pushToRepo() |
public GitControl(String localPath, String remotePath) throws IOException
IOException
public void cloneRepo() throws IOException, org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.NoFilepatternException
org.eclipse.jgit.api.errors.GitAPIException
public void addToRepo() throws IOException, org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.NoFilepatternException
org.eclipse.jgit.api.errors.GitAPIException
public void commitToRepo(String message) throws IOException, org.eclipse.jgit.api.errors.NoHeadException, org.eclipse.jgit.api.errors.NoMessageException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.WrongRepositoryStateException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.NoHeadException
org.eclipse.jgit.api.errors.NoMessageException
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.WrongRepositoryStateException
org.eclipse.jgit.api.errors.GitAPIException
public void branch(String name) throws org.eclipse.jgit.api.errors.RefAlreadyExistsException, org.eclipse.jgit.api.errors.RefNotFoundException, org.eclipse.jgit.api.errors.InvalidRefNameException, org.eclipse.jgit.api.errors.CheckoutConflictException, org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.RefAlreadyExistsException
org.eclipse.jgit.api.errors.RefNotFoundException
org.eclipse.jgit.api.errors.InvalidRefNameException
org.eclipse.jgit.api.errors.CheckoutConflictException
org.eclipse.jgit.api.errors.GitAPIException
public void pushToRepo() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.GitAPIException
public void pullFromRepo() throws IOException, org.eclipse.jgit.api.errors.WrongRepositoryStateException, org.eclipse.jgit.api.errors.InvalidConfigurationException, org.eclipse.jgit.api.errors.DetachedHeadException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.CanceledException, org.eclipse.jgit.api.errors.RefNotFoundException, org.eclipse.jgit.api.errors.NoHeadException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.WrongRepositoryStateException
org.eclipse.jgit.api.errors.InvalidConfigurationException
org.eclipse.jgit.api.errors.DetachedHeadException
org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.CanceledException
org.eclipse.jgit.api.errors.RefNotFoundException
org.eclipse.jgit.api.errors.NoHeadException
org.eclipse.jgit.api.errors.GitAPIException
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.