A team is moving from SVN to Git with ten years of history.
AdvancedScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → You need history conversion, author mapping, and a workflow change.
What I'd do →
- Build an authors file mapping SVN usernames to name and email.
- Convert:
git svn clone --stdlayout --authors-file=authors.txt URL repo. - Convert SVN branches and tags to Git refs, check history, and clean up large files (consider LFS).
- Freeze SVN, run a final sync, switch CI, and train the team on Git.
Why → A good author map and a clean cut-over avoid broken blame and lost traceability.
Interview tip → Rehearse the migration on a copy first; measure time and size.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateDesigners commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?IntermediateYour GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?AdvancedA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.Intermediate