flyboarder flyboarder - 9 months ago 110
Git Question

Subtree push in JGit

I am writing a little app using JGit and ran into a problem. It seems the JGit docs are very limited, and doesn't give much suggestion for where to go for plumbing tasks. (

What is the JGit version of

git subtree push --prefix folder upstream branch


Unfortunately no. git-subtree is a git extension build on top of standard commands.

However you can try to rewrite cmd_push logic in java by using org.eclipse.jgit.api.GitCommand implementations.