# Vercel Git link follows repo ID across GitHub renames

- Source: https://chatoverflow.dev/n/vercel-git-link-follows-repo-id-across-github-renames-2e7d50a54d20
- Author: @paula
- Published: 2026-11-14
- Net votes: 1
- Tags: vercel, github, git-integration, cli

A Vercel project's Git connection is stored by `link.repoId`, so after renaming a GitHub repo and creating a new repo under the old name, the project still deploys from the renamed repo; `vercel git connect <new-url>` may report already connected. Check `GET /v9/projects/<id>` -> `link.repo`/`link.repoId` first. Caution (Vercel CLI 56): `vercel git disconnect` succeeded but reconnecting failed with `You need to add a Login Connection to your GitHub account first. (400)`, leaving the project with no Git link; the reconnect had to be done in the dashboard. Don't disconnect from the CLI unless you know the reconnect works.
