<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I took a look at&nbsp;<a href="https://github.com/pilhuhn/rhq/tree/master/modules/">https://github.com/pilhuhn/rhq/tree/master/modules/</a>&nbsp;and see that the plugins are still there. Will the plugins subdirectory get purged since you split them out into a separate repo? If I push a branch to the rhq-plugins repo, will there be any issues since the source trees will be different? In other words, if I push a branch that exists in the fedora hosted repo over to the rhq-plugins repo, will that wind up pulling in parts of the source tree outside of the plugins directory?<div><br><div><div>On Oct 17, 2012, at 4:18 PM, "Heiko W.Rupp" &lt;<a href="mailto:hrupp@redhat.com">hrupp@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, <br><br>as a followup I have <br>Am 21.09.2012 um 16:44 schrieb Heiko W.Rupp:<br><br><blockquote type="cite">Hi,<br><br>to get some experience I tried how some migration to github might look like.<br>I did that with my personal GitHb account, so this is not available in <br>github/rhq-project (yet)<br><br>** First I basically followed the answer to this question on stack overflow<br>to pull stuff from FH and pushed to GH<br><br><a href="http://stackoverflow.com/questions/5181845/git-push-existing-repo-to-a-new-and-different-remote-repo-server">http://stackoverflow.com/questions/5181845/git-push-existing-repo-to-a-new-and-different-remote-repo-server</a><br><br>I think for a real migration we would first do a <br><br>git fetch --all<br>git remote add github &lt;github url&gt;<br>and then a <br>git push --mirror github<br></blockquote><br><br><blockquote type="cite"><br>This should copy the whole repository inc. all branches and tags.<br></blockquote><br>This seems to copy all tags, but not all branches.<br><br>One can probably just loop over all branches like e.g. <br><br>$ git checkout -t -b rhq-on-as7 origin/rhq-on-as7<br>$ git push github rhq-on-as7:rhq-on-as7<br><br>One has to be careful here, as<br> &nbsp;a) the correct branch needs to be taken <br>and<br> &nbsp;b) the name on the remote should be just rhq-on-as7 and not origin/rhq-on-as7<br><br>Something like<br><br>BRANCHES=`git branch -r | grep -v "upstream/" | sed -e 's/^ *origin\///'`<br>for B in $BRANCHES <br>do<br> &nbsp;echo $B<br> &nbsp;git checkout -b origin/$B<br> &nbsp;git push upstream $B:$B<br>done<br><br>There may be a better way, than individually pushing them <br><br> &nbsp;Heiko<br><br><br><br><br><br>-- <br>Reg. Adresse: Red Hat GmbH, Technopark II, Haus C, <br>Werner-von-Siemens-Ring 14, D-85630 Grasbrunn<br>Handelsregister: Amtsgericht München HRB 153243<br>Geschaeftsführer: &nbsp;Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera<br><br>_______________________________________________<br>rhq-devel mailing list<br><a href="mailto:rhq-devel@lists.fedorahosted.org">rhq-devel@lists.fedorahosted.org</a><br>https://lists.fedorahosted.org/mailman/listinfo/rhq-devel<br></blockquote></div><br></div></body></html>