is there a way to clone/download a TFVC repo from azure devops using code?
and migrate to git is not an option the repo should stay in TFVC format.
There used to be an extension for Azure Repos that supported TFVC. But it's been deprecated since. The repo is still there, so you may be able to build a local copy. Or grab the latest (quite old) version.
Your closest alternative is to use the Windows Explorer extensions or Team Explorer. Or using tf vc on the commandline, like many hard-core git users only using git from the cli.
Related
I have 2 repositories linked to a project in Azure DevOps.
One repository is GIT and the other is TFVC. I wanted to try out TFVC, but turns out I will continue with GIT for support purposes. So I want to delete the TFVC repository on the project.
I understand that deleting the project will remove the repository, this is not an option for me.
I also know the following command : "tf vc destroy $/TestProject" removes the repository but it is not being removed from Devops completely which is a problem for me.
Other posts seem to be from 2018 about this subject. Is there anything added yet to simply remove a TFVC repository from a project?
The only way is to delete the project and recreate it. Otherwise, destroy is your best option.
On my Azure DevOps I cannot see branches. How can I enable branches?
If you choose TFVC(Team Foundation Version control) as version control when you create a new project, the default repo will have no Branches page.
So, you can choose git as version control when you create new projects or create a new repo in this project. A project can only have one TFVC repository but can have multiple git repositories.
You can refer to the documents and learn more about Git and TFVC in Azure DevOps.
If you use TFVC you can't see the branches in the menu, you will see them under the "Files":
Only if you use Git you will see the Branches in the menu:
I'm wanting to fork a github repo into AzureDevOps, whilst retaining the capability within AzureDevOps to keep pulling changes from github as-per forking a repo within github.
Is this feasible / on a roadmap?
I'm wanting to fork a github repo into AzureDevOps, whilst retaining the capability within AzureDevOps to keep pulling changes from github as-per forking a repo within github.
I am afraid there is no such out of box function of the "Fork" in GitHub for Azure Devops. But you can import repository from GitHub directly.
In Azure DevOps the project you want to clone the repository or create a new team project, click code tab. Click repository menu in Code Tab (it is on the top left side) and select Import repository:
Then, slect the SourceType GIT and add your github repository URL:
However, according to the ticket on the github:
Currently there is no Azure DevOps' build in support for automatically
updating your GitHub repo fork in Azure Repos.
We need do the sync manually on the dev machine.
Besides, there is an old document about How-To Fork Git Repositories on Visual Studio Online, but we still need to create a middleman to moderate changes from GitHub before pushing them into a VSTS project.
Hope this helps.
I have a project hosted on TFS, let's call it GenderBlender. Two teams work on GenderBlender. One team got the latest code from TFS and hosted it on Github. Made some commits to that GitHub. How can I move those changes from Github to Tfs without commit history and just one big commit under my account?
I will be moving it from my local git repository to my local tfs repository and then committing them to the tfs.
That is actually the idea: copy the all files from the Git repo to the tfs working tree (be it a TFVC workspace or a Git one)
If it is a Git repo, Git will detect the changes: add and commit.
If it is a TFVC workspace, use a reconcile command to detect the changes
Would like to use VSTS Git repository with TortoiseSVN or any other open source client for source control. I will not going to use VS SDK for my project files as all of them are static HTML files but I really want to push files to Git on VSTS.
TortoiseSVN is the tool for SVN (not Git) client source control system.
It's ok use any GUIs to connect with VSTS git repo instead of using VS.
Such as you can use TortoiseGit, SourceTree etc to connect with VSTS git repo.