I have some old code in CVS that I wish to get into git.
I got the code out of the remote CVS repository using cvsclone so it was a local copy.
I created a svn directory using
svnadmin create /home/user/svn/project
Then I ran cvs2svn with a dumpfile
cvs2svn --dumpfile=/tmp/project.dump --trunk=project/trunk --branches=project/branches --tags=project/tags .
and then ran:
svnadmin load project < /tmp/project.dump
At this point i have the following directories in my svn directory: conf, db, format, hooks, locks. As I understand I cannot see the svn structure in the directory (like in CVS) so I do the following command on my svn directory:
svnlook tree /home/user/svn/project
I can see all the files from cvs in the trunk, branches, tags etc directories. So as I understand I have a local svn repository for my project
What i am struggling to do now is get this local repository of my project to git (without putting it on a remote svn repository)
I have tried a few ways of going from svn to git (including this one: https://www.linkedin.com/pulse/migrating-from-svn-git-8-steps-preserving-history-giovanni-zito)
I get no errors running the following commands:
git svn init file:///home/user/svn/project --stdlayout --no-metadata
git config svn.authorsfile /home/user/svn/project_svn_authors.log
git svn fetch
When I run:
git branch -a
I get nothing, no errors, nothing output. It seems the init or fetch call above has perhaps failed? How can i find out what is failing to work?
Thank you.
p.s. I have also tried using reposurgeon but was also unsuccessful with this. I have very little expertise in cvs, svn or git so very much trying to learn.