Hi,
as a followup I have Am 21.09.2012 um 16:44 schrieb Heiko W.Rupp:
Hi,
to get some experience I tried how some migration to github might look like. I did that with my personal GitHb account, so this is not available in github/rhq-project (yet)
** First I basically followed the answer to this question on stack overflow to pull stuff from FH and pushed to GH
http://stackoverflow.com/questions/5181845/git-push-existing-repo-to-a-new-a...
I think for a real migration we would first do a
git fetch --all git remote add github <github url> and then a git push --mirror github
This should copy the whole repository inc. all branches and tags.
This seems to copy all tags, but not all branches.
One can probably just loop over all branches like e.g.
$ git checkout -t -b rhq-on-as7 origin/rhq-on-as7 $ git push github rhq-on-as7:rhq-on-as7
One has to be careful here, as a) the correct branch needs to be taken and b) the name on the remote should be just rhq-on-as7 and not origin/rhq-on-as7
Something like
BRANCHES=`git branch -r | grep -v "upstream/" | sed -e 's/^ *origin///'` for B in $BRANCHES do echo $B git checkout -b origin/$B git push upstream $B:$B done
There may be a better way, than individually pushing them
Heiko