将某些项目从用户帐户移至另一个 [英] Move some projects from a user account to another

查看:92
本文介绍了将某些项目从用户帐户移至另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将更换公司,但我将继续从事相同的项目.我在Git上的Azure DevOps上有一些项目,而在TFVC上有另一个项目.我已经使用了Visual Studio中集成的这些源代码控制工具,但从未使用过控制台命令.

I am going to change my work company, but I will continue working on the same projects. I have some projects on Azure DevOps with Git and another one with TFVC. I have used these source control tools integrated on Visual Studio, I have never used the console commands.

我想将某些项目(并非所有项目)的所有更改从一个帐户复制"到一个帐户中的源代码.如果有可能将TFVC迁移到Git.我该怎么办?

I want to "copy" the source code with all changes of some projects (not all projects) from one account to another. And if it is possible to migrate TFVC to Git. How can I do it?

推荐答案

首先,使用 git-tfs 工具.

在Git中使用所有代码后,您可以轻松地将代码移至另一个项目:

When your all code in Git you can move the code easily to another project:

1)将存储库克隆到本地文件夹.

1) Clone the repository to a local folder.

2)转到TFS/Azure DevOps并创建一个新的Git存储库.

2) Go to TFS/Azure DevOps and create a new Git repository.

3)将本地存储库推送到TFS/Azure DevOps存储库.

3) Push the local repo to TFS/Azure DevOps repo.

最好的方法是使用命令行:

1)git clone old-repo-url

2)从TFS/Azure DevOps门户创建新的仓库.

2) Create the new repo from TFS/Azure DevOps portal.

3)git remote add origin new-repo-url

git push -u origin --all

这篇关于将某些项目从用户帐户移至另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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