public GitBranchResponse branch ( File repositoryPath ) throws IOException , JavaGitException { CheckUtilities . checkNullArgument ( repositoryPath , "repository path" ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitBranch gitBranch = client . getGitBranchInstance ( ) ; return gitBranch . branch ( repositoryPath ) ; }
Does a basic git - branch without any options .