|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
| Koko boko
Registered: July 2009
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.01955 seconds