Tuesday, April 17, 2012

Migrating SVN with history to a new Git repository

Thx to stackoverflow.com thread and a post from user Casey I finally did it.

Follow instructions given by Casey and add few steps.

Here are the steps to add to save all branches.
cd dest_dir
git checkout -b local_branch remote_branch
for every branch after step where you cloned:
git clone dest_dir-tmp dest_dir 
before step where you removed temporary dir:
rm -rf dest_dir-tmp

No comments: