在git-tfs中使用git来备份Visual Studio Team Services上的TFVC [英] Use git with git-tfs for backing up TFVC on Visual Studio Team Services

查看:321
本文介绍了在git-tfs中使用git来备份Visual Studio Team Services上的TFVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前在Visual Studio Team Services中使用TFVC作为源代码管理系统。问题是没有备份的可能性,我们可以在本地保存所有的变更(公司政策)。我的想法是使用git-tfs,这对于获取更改似乎工作正常,这意味着我有一个本地存储库。现在,我想将所有使用git-tfs获取的更改推送到另一个存储库git存储库。

  ...> git tfs fetch --all 

使用tfs remote:default => $ / XXX / Development
...一些线路:从TFS远程'BLABLALBA'...(不带变更集)
从TFS远程'默认'获取...
C15292 = bee73744bae425be4947772a98b062850e4684f9
C15293 = addccf6a02912a18584ec122744ea23173234dbc
更多变更

...> git push --all origin
一切都是最新的

新来git所以也许我误解了一些东西。

编辑:
清除它:我们正在考虑迁移到git。因此,推送到我们想要用于测试的存储库(与备份无关)。

另外,我正在使用Git-Tfs而不是git- tf。

解决方案

这是真正的将TFVC本地克隆到Git仓库的好方法。 b $ b

We are currently using TFVC in Visual Studio Team Services as Source Control system. The problem is there is no backup possibility where we can keep all changesets locally (company policy). My idea was to use git-tfs, which seems to work fine for fetching changes, meaning i have a local repository. Now I would like to push all changes fetched with git-tfs into another repository git repository.

...> git tfs fetch --all

Working with tfs remote: default => $/XXX/Development
... SOME LINES LIKE: Fetching from TFS remote 'BLABLALBA'... (without changesets)
Fetching from TFS remote 'default'...
C15292 = bee73744bae425be4947772a98b062850e4684f9
C15293 = addccf6a02912a18584ec122744ea23173234dbc
SOME MORE CHANGSETS

...> git push --all origin
Everything up-to-date

P.S.: I am completely new to git so maybe i misunderstood something.

EDIT: To clear it up: We are thinking about to migrate to git. So the push would be to a repository which we want to use for testing (has nothing to do with the backup).

Also I am using Git-Tfs not git-tf.

解决方案

It's really a good way to backup TFVC locally by cloning it to Git repo for now.

这篇关于在git-tfs中使用git来备份Visual Studio Team Services上的TFVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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