Sat 17 Oct 2015
I recently converted from SVN to Git and needed to break my legacy SVN repositories into separate git repositories. This turned out to be much harder than I thought. After a lot of googling and much trial and error, here’s the process I settled on:
- Create new remote repository new-repo
- Clone new-repo locally
- Execute command line:
> cd new-repo
> git remote add old-repo https://github.com/cyberreefguru/old-repo.git
> git pull https://github.com/cyberreefguru/old-repo.git master
> git rm -r old-folders
> git mv files-around-as-necessary
> git commit
> git push
Hope it helps someone.
Leave a Reply
You must be logged in to post a comment.