Migrating from SVN
Create Authors File
The authors files will translate svn usernames to email addresses for git.
- PowerShell command to extract all authors from SVN:
- Must have svn command line tools installed
- This is an option when installing TortoiseSVN
- If you are unsure whether you installed it or you know that you didn’t, you can just run the TortoiseSVN installer again and take care to include this option
- Run the authors-export.ps1 script from within your svn directory
- Edit authors.txt file to match the following format:
Clone Repository
For standard layout of trunk, branchs, tags:
For non-standard layout (B&R’s svn repository):
Convert SVN ignore
git svn show-ignore > .gitignore
git add .gitignore
git commit --m ‘convert svn:ignore to .gitignore’
Push to New Git Repository
git remote add origin \[my new git repo\].git
git add .
git commit --m ‘migrating svn to git’
git push --u origin main