git-tfs 我可以克隆所有分支但跳过历史记录吗? [英] git-tfs can I clone all branches but skip the history?

查看:38
本文介绍了git-tfs 我可以克隆所有分支但跳过历史记录吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个项目从 TFVC 迁移到 Git.我想保留不同的分支,但我不需要每个历史记录.可以吗?

I want to migrate a project from TFVC to Git. I want to keep the different branches but I dont need each history. Can it be done?

我试过 git tfs quick-clone -branches=all 但我只获取一个分支

I tried git tfs quick-clone -branches=all but I only fetches one branch

推荐答案

解决方案比我最初想象的要简单.只需创建一个新的空 Git 存储库.创建第二个分支.从 TFSVC 文件夹复制文件.犯罪.切换分支,复制到另一个TFSVC分支.犯罪.

Solution was more simple than I first thought. Just create a new empty Git repository. Create a second branch. Copy files in from TFSVC folder. Commit. Switch branch, copy in the other TFSVC branch. Commit.

这篇关于git-tfs 我可以克隆所有分支但跳过历史记录吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆