Skip to content
Skills Library
DevOps & cloud · Planning

tfvc-to-git

/tfvc-to-git

Migrate source code from TFVC (Team Foundation Version Control) to Git in Azure DevOps: choose history depth (tip only, recent history or full via git-tfs), map TFVC branches to Git branches, handle large binaries with Git LFS or removal, rewrite build pipelines, and switch the team over with a freeze window. Use when a team still on TFVC wants Git, when planning the migration of a large TFVC repository, or when changesets must be mapped to commits.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Migrate source code from TFVC (Team Foundation Version Control) to Git in Azure DevOps: choose history depth (tip only, recent history or full via git-tfs), map TFVC branches to Git branches, handle large binaries with Git LFS or removal, rewrite build pipelines, and switch the team over with a freeze window. Use when a team still on TFVC wants Git, when planning the migration of a large TFVC repository, or when changesets must be mapped to commits.

Original author description

Migrate source code from TFVC (Team Foundation Version Control) to Git in Azure DevOps: choose history depth (tip only, recent history or full via git-tfs), map TFVC branches to Git branches, handle large binaries with Git LFS or removal, rewrite build pipelines, and switch the team over with a freeze window. Use when a team still on TFVC wants Git, when planning the migration of a large TFVC repository, or when changesets must be mapped to commits.

How it works

  1. Decide the history
  2. Prepare
  3. Cut-over
  4. Rules
Original SKILL.md headings · 22 lines, 228 words
SKILL.md preview
---
name: tfvc-to-git
description: "Migrate source code from TFVC (Team Foundation Version Control) to Git in Azure DevOps: choose history depth (tip only, recent history or full via git-tfs), map TFVC branches to Git branches, handle large binaries with Git LFS or removal, rewrite build pipelines, and switch the team over with a freeze window. Use when a team still on TFVC wants Git, when planning the migration of a large TFVC repository, or when changesets must be mapped to commits."
---

# TFVC to Git

## Decide the history
| Option | When | How |
|---|---|---|
| Tip only (+ TFVC kept read-only for archaeology) | most teams, fastest | Azure DevOps "Import repository" from TFVC (up to 180 days of history), or a clean snapshot |
| Recent history | need blame on recent work | Azure DevOps import with history window |
| Full history | audit or heavy archaeology needs | `git-tfs clone` (slow on big repos; can take days) |

## Prepare
1. **Branches**: list TFVC branches (`tf branches`), decide which become Git branches (Main -> `main`, releases -> `release/x.y`); many old branches are not worth migrating.
2. **Size**: find large binaries (third-party DLLs, installers, databases). Move dependencies to NuGet/npm packages, put needed binaries in Git LFS, drop the rest.
3. **`.gitignore`** for `bin/ obj/ packages/ *.user` before the first commit; normalise line endings with `.gitattributes`.
4. **Pipelines**: update build definitions (TFVC paths, workspace mappings, `$(Build.SourceVersion)` semantics: changeset number -> commit SHA, so version numbering must change).

## Cut-over
Freeze TFVC check-ins, final import, verify the build and the tests from Git, lock TFVC as read-only, train the team (branching model, pull requests, policies). Keep a mapping changeset -> commit if history was migrated (git-tfs notes) for audits.

## Rules
Rehearse on a copy first and time it; never migrate during a release crunch.

Versions

The database has no other skills named tfvc-to-git.

Database snapshot: 13.11.2026 · package version ba89e93a1578 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85azure-repos
    Expert knowledge for Azure Repos development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and integrations & coding patterns. Use when managing Git/TFVC repos, branch policies/PR checks,…
  • 85azure-repos
    Expert knowledge for Azure Repos development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and integrations & coding patterns. Use when managing Git/TFVC repos, branch policies, PR checks,…
  • 91checkout-git-repository
    Materialize a Git repository for build or test work with shallow exact-revision history by default, recursive submodules, repository-local Git LFS setup and hydration, and fail-closed content verification. Use when cloning or refreshing a worker checkout, preparing a repository…
  • 90azure-devops
    Use when user references Azure DevOps / ADO, dev.azure.com or an on-prem TFS URL, work items, bugs, PBIs, pull requests, or the project wiki. Goes through the azure-devops MCP server.
  • 100azure-devops
    Set up Azure Pipelines for CI/CD, configure build and release pipelines, manage Azure DevOps projects, and integrate with Azure services. Use when working with Azure DevOps Services or Server for enterprise DevOps workflows.
  • 100git-workflow-manager
    Manage git workflow manager operations. Auto-activating skill for DevOps Basics. Triggers on: git workflow manager, git workflow manager Part of the DevOps Basics skill category. Use when working with git workflow manager functionality. Trigger with phrases like "git workflow…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.