DEV Community

Xinyue Zhan
Xinyue Zhan

Posted on

What a video engineer actually checks before moving their repos

I did the math for our small team before we picked where our repositories live. The comparison was not between vendors, it was between the Git server and everything you build around it.

Ask these four questions first

  1. Who creates repos? If only admins can, your incident response is slower than it needs to be. If everyone can, you need naming rules. Write them down before the repo count doubles.
  2. What does the auditor need? Usually the same list every year: who has access to production repos, who changed branch protection, and which tokens can push. Pick a setup where those are queryable, ideally from the API.
  3. Where do CI runners live? The repository hosting is cheap; the runners and the secrets they hold are where the real risk and cost sit.
  4. What happens on outage? A local mirror with read-only access for everyone is not paranoia. The question is whether you can push for an hour while the host is down.

What the API check looks like

curl -s -H "Authorization: Bearer $TOKEN" \
  https://$HOST/api/v1/repos?per_page=100 | jq '.[] | {name, private}'
Enter fullscreen mode Exit fullscreen mode

If that works and a normal user can also list their own repos, the migration will be boring, and boring is what you want. If listing requires an admin token, add two weeks to the plan.

For a solo project, plain Git over SSH and one shared host is fine. The moment a second person needs access, the answer shifts to whichever option lets the team self-serve without opening a ticket.

The part that outlives the code

Issues and discussions keep being read long after the code they were opened for is gone. I keep short checklists like this next to my Python deploy notes in github.com/barasel200-bit/uvicorn-teardown-notes, and copy them into every new project's README, because the migration happens once and the notes get read for years.

A cheaper path

Start with one team and one repo, move the second repo in a week later, and let the tooling prove itself before you sign a contract. Comparing the third month instead of the first changes which option wins more often than any feature list.

Top comments (0)