How to do a "git pull origin subbranch:subbranch" in jgit? [message #725745] |
Thu, 15 September 2011 12:29  |
Eclipse User |
|
|
|
Hi, I need to push or pull branches into remote branches from or to origin, I do not see how to do it, does anyone has a clue how to do this?
Also I have not been able to find a good javadoc for jgit. I would appreciate if anyone could point me to it.
regards.
|
|
|
|
|
Re: How to do a "git pull origin subbranch:subbranch" in jgit? [message #726741 is a reply to message #725987] |
Mon, 19 September 2011 08:01  |
Eclipse User |
|
|
|
Hello Matthias, I still have not got an answer so I thought maybe you or anyone could redirect me to a guru if you do not know the answer yourself, I am newbee with git and I am thinking of incorporating it in our product with help of jGit,
in a scenario where a new branch is added to the origin repository we sometimes would like to get it also to our local repository, now the command git pull origin "branch_name" does the trick, or from origin one could do git push remote_rep push "branch_name"
Now just by looking at the javadoc I can not find any "set" method in the PullCommand or PushCommand that does the trick. neither can I see how the Repoisotry should be set so that the right branch is pulled or pushed.
I think this is basic functionality in Git and since JGit is pretty powerful tool it would be strange if it does not cover it.
So I would be really thankful for any kind of help or direction.
|
|
|
Powered by
FUDForum. Page generated in 0.03478 seconds