CheckoutCommand checkout = git.checkout();
checkout.setCreateBranch(createBranch);
checkout.setName(remote);
checkout.setForce(force);
checkout.setUpstreamMode(mode);
return checkout.call();
}
public static Ref checkout(final Git git, final Ref localRef, final boolean createBranch,
final SetupUpstreamMode mode, final boolean force)
throws JGitInternalException,