I need some JGit specific help please.
I am looking to the equivalent of the following using JGit library:
git push [remotename] [commit SHA]:[remotebranchname]
In other words: from a particular repo, I'd like to push everything upto a specific commit to another remote repo.
The org.eclipse.jgit.api.PushCommand
seems to be allowing me to specify only the remote name, but not the commit id or the remote branch name.
Could someone please point out what I am missing?