tfvc

git-tfs can I clone all branches but skip the history?

♀尐吖头ヾ 提交于 2021-02-19 07:33:11
问题 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? I tried git tfs quick-clone -branches=all but I only fetches one branch 回答1: If you want to work with tfs branches, you should clone one of the root branches. After you perform git push, all branches will be pushed to Git team projects. Generally, the following steps would achieve your goal: git-tfs clone http://tfsserver:8080/tfs/CollectionName/ $/teamproject

git-tfs can I clone all branches but skip the history?

我们两清 提交于 2021-02-19 07:33:08
问题 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? I tried git tfs quick-clone -branches=all but I only fetches one branch 回答1: If you want to work with tfs branches, you should clone one of the root branches. After you perform git push, all branches will be pushed to Git team projects. Generally, the following steps would achieve your goal: git-tfs clone http://tfsserver:8080/tfs/CollectionName/ $/teamproject

TF Merge command in Powershell script task is not working

蓝咒 提交于 2021-02-11 15:56:23
问题 I am having powershell task with the following commands in my pipeline which is running using custom agent pool. $TFFile = "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe" $mergeCommand = " merge $/MyProject/dev $/MyProject/test /recursive" Start-Process "$TFFile" "$mergeCommand" $comment = "Automated merge check-in" $CheckinToTarget = " checkin $/MyProject/test /comment:$comment /recursive /noprompt"

Move code from TFVC on TFS 2010 to TFVC on Azure DevOps Server

左心房为你撑大大i 提交于 2021-02-10 14:28:36
问题 I have some projects on TFVC source control on TFS 2010. I want just to migrate the source code from TFS 2010 to TFVC on Azure DevOps Server. I don't want to process an upgrade of the entire collection to a newest version. I Just want to transfer my code with history. I tried Git-TFS. I cloned my repository on TFS 2010, but I don't know how I can update the remote URL for TFVC repos and push on Azure DevOps Server. Any ideas how I can do it? Or other tools that I can use?. In the case I

Migrate source code from git to TFVC

这一生的挚爱 提交于 2021-02-10 07:29:09
问题 We are using visual studio online, and we use the git support of TFS. We now want to stop using git and use TFVC instead. What is the best solution to migrate our source code to TFVC ? 回答1: Assume you are creating another project in VSO and moving the source code, as per today you cannot change or mix TFVC with Git in the same project. There is no best solution, but I can recap some techniques. forget about history, pull down and check into the new version control use git-tf (no branch

Using TFS command line tf.exe how can I copy a repo to a folder location of my choice?

北城余情 提交于 2021-01-27 14:27:48
问题 I have stared using TFVC for my MSVS 2015 C++ project. I am used to command line repos like git/svn, where I can simply do a checkout/clone, etc... and copy the files to any folder I like. So, I have checked out my workspace to a mapped location (c:\myworkspace) via the MSVS2015 GUI. But now I want to to run my auto test script, which will copy the latest files from the repo to the current directory (e.g. c:\autorun). The auto test script builds and tests and generates results etc... But I

TFS Rollback vs “Get This Version”

ぐ巨炮叔叔 提交于 2020-08-24 06:57:26
问题 What is the difference between Rollback and "Get This Version" ? Both of them let me go back to a specific version and from there doing changes and check-in. What are the additional benefits of having both of them? 回答1: Get specific version / Get this version Only effects your local workspace, it reverts all your local changes to an older version. When you try to check these changes in, you'll get a merge conflict and will need to resolve these issues. It's useful when you need to debug an

Can't check in changes to TFS

你说的曾经没有我的故事 提交于 2020-08-03 09:13:07
问题 I am having issues trying to check in changes to TFS hosted on Visual Studio Online. Started just last week. I am running Visual Studio Professional 2017 version 15.5.2 . When I try to check in changes, I get this error: C:\My\Workspace\Path\Project\File.cs: Download of item $/Workspace/Path/Project/file.cs was not completed. Perform a get operation to correct. Okay, whatever. Sounds simple enough. So I go to the problem file and do a Get Latest Version . When I do that, I then get this error