I am trying to migrate my repository from SVN->GIT. I am using to git-svn commands to setup a SVN GIT mirror. I am following https://gist.github.com/ticean/1556967 for reference. Migration from SVN to GIT will be a gradual process. Initially, developers will be using SVN for commits and this mirror will be used to update/sync the GIT repository on a daily basis. Later, everyone will be moved to GIT and current SVN repo will be locked.
Background:-
- We are not following the conventional directory structure in SVN.
- We have our code placed as https://Path_to_svn/ABC/branches/Branch/Project_Name
- We have a git repo https://github.com/UserName/Project_Name1.git
To set up a mirror, I am using the following commands in sequence:-
- git svn init https://Path_to_svn/ABC/branches/Branch/Project_name
- git svn fetch:- After a long iteration through all the files in the SVN repo, this step completes.
- git checkout -b develop
- git checkout master
- git reset --hard master
- git remote add origin1 git@github.com:UserName/Project_Name1.git
- git checkout develop
- git svn rebase At this point I am getting "unable to determine upstream svn information from working tree history" error. I have tried steps mentioned in Unable to determine upstream SVN information from HEAD history but no help.
Thanks in Advance..!!