azure-devops - 将 TFVC 存储库从一个项目迁移到另一个项目?
问题描述
我有一个 TFVC 存储库要迁移,但我只能找到一种将其迁移到 git 或向后迁移的方法。
解决方案
Step 1 : Download git-tfs using cmd, use the below given command to download.
curl -L -o GitTfs-0.30.0.zip "https://github.com/git-tfs/git-tfs/releases/download/v0.30/GitTfs-0.30.0.zip"
Step 2 : unzip GitTfs-0.30.0.zip and check "git-tfs.exe -version" in the cmd prompt.
Step 3 : Cloning tfvc repository from azure.
git-tfs.exe clone http://tfs:8080/tfs/DefaultCollection $/some_project
(wait for git-tfs to pull your history) (-or-)
git-tfs.exe quick-clone http://tfs:8080/tfs/DefaultCollection $/some_project
(cd some_project and hack away, using only git, until you need to share with TFS…)
Step 4 : Pushing git repository
git remote add new git@newserver:newproject.git
note - git@newserver:newproject.git is Bitbucket repo
Step 5 : git push --mirror new
推荐阅读
- google-cloud-platform - GoogleCloudPlatform explainable_ai_sdk.load_model_from_ai_platform 错误
- apache-spark - spark dataframe写入CSV时设置quote选项后编码方式改变了?
- python - NoReversematch 错误,即使提到了主键
- python - 以 Pythonic 方式使用 f 字符串进行字符串格式化
- .net-core - 用于 dbset 扩展的单元测试
- javascript - 更改每个不同选项卡的 URL
- python - Selenium 抓取 HTTP 错误 403:使用 wget 时的 ModSecurity 操作
- html - 如何使用 SVG sprite 作为 CSS 伪元素?
- android - 如何处理不同片段中侧面菜单的onClick
- java - 如何在Java中从头到尾清理空格?