Quote:
Originally Posted by KLS
I think we'll probably go with git. Not sure if we're going to do a total repo conversion or just leave the old svn one up if someone wants to see the history. I've taken a crack at conversion and it is definitely not a quick process.
|
https://github.com/mackal/projecteqemu this took a few hours to do.
Just ran:
Code:
$ git svn clone --stdlayout https://projectname.googlecode.com/svn projectname
$ git for-each-ref refs/remotes | cut -d / -f 3- | grep -v @ | while read branchname; do git branch "$branchname" "refs/remotes/$branchname"; git branch -r -d "$branchname"; done
I then just deleted the other old branches a that showed up so there were only the ones that you see on Google Code (git branch -D <name>)
Code:
$ git remote add origin git@github.com:GITHUB_USERNAME/REPO_NAME.git
git push origin --all
Some other links:
https://code.google.com/p/support/wi...ertingSvnToGit
http://git-scm.com/book/ch8-2.html
https://help.github.com/articles/imp...rom-subversion
Also:
https://github.com/nirvdrum/svn2git would probably be better than what I did, but gentoo's svn2git appears to be a different project and after I emerged that it wouldn't work so I did what I posted above :P