{"id":17983159,"url":"https://github.com/martins-vds/tfvc-git-migration-scripts","last_synced_at":"2026-04-24T16:34:26.128Z","repository":{"id":104228848,"uuid":"315443353","full_name":"martins-vds/tfvc-git-migration-scripts","owner":"martins-vds","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-11T15:47:59.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T02:12:20.393Z","etag":null,"topics":["git","migration","tfvc"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martins-vds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-23T21:19:12.000Z","updated_at":"2022-03-11T15:12:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed42bb1a-3db0-4edc-b916-b5f8196d281f","html_url":"https://github.com/martins-vds/tfvc-git-migration-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martins-vds/tfvc-git-migration-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-vds%2Ftfvc-git-migration-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-vds%2Ftfvc-git-migration-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-vds%2Ftfvc-git-migration-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-vds%2Ftfvc-git-migration-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martins-vds","download_url":"https://codeload.github.com/martins-vds/tfvc-git-migration-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-vds%2Ftfvc-git-migration-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32231017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","migration","tfvc"],"created_at":"2024-10-29T18:16:19.122Z","updated_at":"2026-04-24T16:34:26.098Z","avatar_url":"https://github.com/martins-vds.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## Prerequisites\n\n- Install Git. See: [Install Git](https://github.com/git-guides/install-git#install-git)\n- Install Github CLI. See: [Installing Github CLI](https://github.com/cli/cli#installation)\n- Install Git-Tfs. See: [Get git-tfs](https://github.com/git-tfs/git-tfs#get-git-tfs)\n    - You need **at least** .NET 4.6.2 and the 2012 or 2013 version of Team Explorer installed (or Visual Studio) depending on the version of TFS you want to target.\n## Before You Get Started\n- Clone this repo and initialize the submodules\n```bash\ngit clone https://github.com/martins-vds/tfvc-git-migration-scripts.git\ngit submodule update --init\n```\n- If this repo is already cloned locally, pull the latest changes:\n```bash\ngit pull --recurse-submodules\n```\n\n## Execution Sequence\n1. Initialize the local git repo which will be the target of the TFVC migration. Example:\n```posh\n.\\Init-LocalRepo.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\" -TfsUrl \"https://contoso.com/tfs/defaultcollection\" -TfsRepoPath \"$/Contoso/Trunk\" -IgnoreFile \"c:\\path\\to\\gitignore\"\n```\n2. Initialize the Github repo which will host the migrated code. Example\n```posh\n.\\Init-GithubRepo.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\" -Token \"authTokenGoesHere\" -Name \"NameOfRepoGoesHere\" -Description \"DescriptionOfRepoGoesHere\" -Team \"TeamAssignedToRepo\" -Organization \"OrgNameGoesHere\"\n```\n\n- *The \"Team\" argument is **optional***\n\n\u003e To generate an auth token, see [Creating a personal access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)\n\u003e The auth token requires the 2 scopes: \"repo\" and \"read:org\" (under \"admin:org\")\n\n3. Pull from TFS. Example:\n```posh\n.\\Pull-Tfs.ps1 -Changeset 1234 -IgnoreFile \"c:\\path\\to\\gitignore\" -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```\n\n4. Initialize GitVersion. Example:\n```posh\n.\\Init-GitVersion.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```\n\n\u003e :warning::warning::warning:\n\u003e MAKE SURE THAT THE CODE BUILDS CORRECTLY\n\u003e COMMIT EVERY CHANGE BEFORE MOVING ON TO THE NEXT STEP\n\u003e :warning::warning::warning:\n\n5. Set Next Version. Example:\n```posh\n.\\Set-NextVersion.ps1 -NextVersion 1.0.0 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```\n\n6. Initialize Git Flow. Example:\n```posh\n.\\Init-GitFlow.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```\n\n7. Push the local git repo to Github. Example:\n```posh\n.\\Push-Github.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```\n\n8. Cleanup TFS related configs. Example:\n```posh\n.\\Cleanup-TfsConfigs.ps1 -GitRepoDirectory \"c:\\path\\to\\local\\git\\folder\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartins-vds%2Ftfvc-git-migration-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartins-vds%2Ftfvc-git-migration-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartins-vds%2Ftfvc-git-migration-scripts/lists"}