• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

create branch on TFS  RSS feed

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody with experience using TFS (Team Foundation Server) version control ?  My situation is --- I have codes in TFS repository but I have never created branches yet.    If I create a "master" branch, questions:

Does the repository keep two version of codes, one for the original code and one for the master ? i.e. whatever I change on master won't affect the "original" one ?  i.e. does TFS always keep an implicit default branch that matches to the initial stage when no branch is created ?

 
Saloon Keeper
Posts: 9248
177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your TFS team project use Git or TFVC?
 
Linwood Hayes
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Does your TFS team project use Git or TFVC?



TFVC.  suppose my project structure looks like

MyTeamProject
    --WebProject
    --JavaProject

How to create a branch "NewBranch" that includes WebProject and JavaProject ?


MyTeamProject
    --Project_1
    --Project_2

     +NewBranch
         --Project_1
         --Project_2
 
Stephan van Hulst
Saloon Keeper
Posts: 9248
177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Honestly, I don't really know a lot about TFVC, and what I've read about it thus far seems quite confusing to me because I'm used to Git.

Have you gone through the MSDN documentation on creating branches? Do you have a sandbox server somewhere where you can play around with it to learn how everything works?

Here are some links that I found, I'm not sure if they're helpful for you:

https://docs.microsoft.com/en-us/vsts/tfvc/branch-folders-files?view=vsts
https://docs.microsoft.com/en-us/vsts/tfvc/use-branches-isolate-risk-team-foundation-version-control?view=vsts
https://docs.microsoft.com/en-us/vsts/tfvc/branching-strategies-with-tfvc?view=vsts
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!