• Post Reply Bookmark Topic Watch Topic
  • New Topic

create branch on TFS  RSS feed

 
Ranch Hand
Posts: 109
  • 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: 8996
168
  • 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: 109
  • 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: 8996
168
  • 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
 
Get out of my mind! Look! A tiny ad!
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!