Thanks for these detailed instructions.
However, after the command "git branch -m trunk master" (isssued in the bare local repository) I receive the error message "error: refname refs/heads/trunk not found".
What might have gone wrong?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Try "git branch -m svn/trunk master"
Also in the section for creating a bare repo, the command should be "git symbolic-ref HEAD refs/heads/svn/trunk"
This also affects the references for tags as well.
git for-each-ref --format='%(refname)' refs/heads/svn/tags | % { $_.Replace('refs/heads/svn/tags/','') } | % { git tag $_ "refs/heads/svn/tags/$_"; git branch -D "svn/tags/$_" }
I also hit this error. Try git branch to list the available branches. Then change the command accordingly.
For example, git branch -m bare/svn/trunk master instead of git branch -m trunk master
This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.
Most helpful comment
Try "git branch -m svn/trunk master"
Also in the section for creating a bare repo, the command should be "git symbolic-ref HEAD refs/heads/svn/trunk"