SlideShare a Scribd company logo
A Deeper Look at
TFS 2012 Version
Control
Steve Lange
Sr. Developer Technology Specialist
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
Web Service         SQL Server   Version
Application         backend      Control Proxy
Communication via   Scalable     Network-near cache
HTTP(S)                          for versioned artifacts
                    Manageable
Runs on IIS
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
Server Workspaces



Local Workspaces
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
Check-in Lock                                Check-out Lock
Less restrictive                             Prevents any changes from being made
                                             by others
A check-in lock is less restrictive than a
check-out lock.                              Only applies to server workspaces
Other users can make local changes, but      Can be applied to files with no pending
not check in                                 changes anywhere
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
Read                         Read the contents of a file or folder

Check out                    Check out and make a pending change to items in a folder

Check in                     Check in items and revise any committed changeset comments
Label                        Label items
Lock                         Lock and unlock folders or files
Revise other user's changes Edit the comments on checked-in files, even if another user checked in the file
Unlock other user's changes Unlock files locked by other users
Undo other user's changes    Undo a pending change made by another user
Administer labels            Edit or delete labels created by another user
Manage permissions           Manage other users' permissions for folders and files in version control
Check in other user's        Check in changes that were made by other users. Pending changes will be committed at check-in
changes
Merge                        For a given path can merge changes into this path
Manage branch                For a given path can convert any folder under that path into a branch. Can also edit properties, re-parent,
                             and convert a branch to a folder
A Deeper Look at Team Foundation Server 2012 Version Control
versionspec


   Changeset               [C]n                                     /v:C8
   Label                   Llabel                                   [file];LMyLabelName
   Date & Time             Dyyyy-mm-ddTxx:xx                        /version:D2012-03-22
                           (or any format supported by .NET or on   /version:D2012-03-22T09:00
                           local machine)
   Workspace (current)     W
   Workspace (specified)   Wworkspacename;                          WResolveRIConflicts;PeterW
                           workspaceowner
   Tip                     T
tf get [itemspec] [/version:versionspec] [/all] [/overwrite] [/force] [/remap]
[/recursive] [/preview] [/noautoresolve] [/noprompt]
[/login:username,[password]]

tf get *.cs /recursive
tf get program.cs;8




tf checkout [/lock:(none|checkin|checkout)] [/recursive] [/encoding:encoding]
itemspec [/login: username,[password]]


tf checkout program1.cs program2.c
tf checkin [/author:author name] [/comment:("comment"|@comment file)] [/noprompt]
[/notes:("Note Name"="note text"|@notefile)] [/override:(reason|@reasonfile)]
[/recursive] [/saved] [/validate] [itemspec] [/bypass] [/force] [/noautoresolve]
[/login:username,[password]] [/new]

tf checkin /comment:"Re-implemented Pi calculator"
tf checkin program.cs /noprompt




tf label labelname[@scope] [/owner:ownername] itemspec [/version:versionspec]
[/comment:("comment"|@commentfile)] [/child:(replace|merge)] [/recursive]
[login:username,[password]] [/collection:TeamProjectCollectionUrl]

tf label goodbuild /version:3 $/src/314.cs
tf label goodbuild docs /recursive
tf stat[us] itemspec [/collection:TeamProjectCollectionUrl]
[/login:username,[password]] ([/workspace:workspacename[;workspaceowner]] |
[/shelveset:shelvesetname[;shelvesetowner]]) [/format:(brief|detailed)]
[/recursive][/user:(*|username)] [/nodetect]

tf stat SolutionA* /recursive




tf add itemspec [/lock:(none|checkin|checkout)] [/encoding:filetype] [/noprompt]
[/recursive] [/noignore] [/login:username,[password]]


tf add *.cs /recursive
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
A Deeper Look at Team Foundation Server 2012 Version Control
Summary
Steve Lange
sr. developer technology specialist

stevenl@microsoft.com
@stevelange | http://slange.me
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
A Deeper Look at Team Foundation Server 2012 Version Control
Figure 1:
Magic
Quadrant for
Application
Lifecycle
Management
Visual Studio 2012 homepage
 Downloads
Visual Studio 2012 Product Guide
Visual Studio 2012 Product Comparison
VS 2012 ALM VM and Labs
Visual Studio 2012 Readme
Visual Studio 2012 Learning Library
 Articles
 Videos
Using Version Control
 What's New in Version Control
 Get Started
 Develop Your App
 Suspend Your Work
 Check In Your Work
 Isolate Risk
 View and Manage Past Versions
 Compare Folders and Files
 Resolve File Conflicts
 Work with Version Control Locks
 Version Control Commands
Converting from Visual SourceSafe
SVN (by Timely Migration)
ClearCase


Bridging with Git
SVN Bridge
ALM with Visual Studio and TFS
Cross-Platform Development
Extending Team Foundation Server
TFS Integration Platform

More Related Content

PPTX
TFS 2010: Team Development on Crack
PPTX
Visual Studio 2010 Testing for Developers
PPTX
Introduction to Team Foundation Server (TFS) Online
PPTX
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
PPTX
Full Testing Experience - Visual Studio and TFS 2010
PPTX
Continuous Integration In The Cloud Final (1)
PPTX
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
PPTX
Jenkins as the Test Reporting Framework
TFS 2010: Team Development on Crack
Visual Studio 2010 Testing for Developers
Introduction to Team Foundation Server (TFS) Online
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
Full Testing Experience - Visual Studio and TFS 2010
Continuous Integration In The Cloud Final (1)
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
Jenkins as the Test Reporting Framework

What's hot (20)

PPTX
Deep dive into feature versioning in SharePoint 2010
PPTX
Jeremy thake introducing alm to share point development implementations (ap...
PDF
STLDODN 2015 - How VSO and TFS 2015 Will Rock Your Agile World
PPTX
Share Point Development With Unit Testing
PPTX
Continuous Test Automation via CI (CodeMash 2012) - Automating the Agile way
PPTX
Agile test practices
ODP
Continous integration
PDF
Simple Continous Integration
PPTX
Functional & Performance Test Automation with CI
PPT
Continous Integration: A Case Study
PDF
Continuous Delivery with Dynamics CRM - CRMUG Webinar 2014
PPTX
How to Perform Test Automation With Gauge & Selenium Framework
PPT
TestLink introduction
DOCX
Testing in TFS
PPTX
Automated UI Testing
PPTX
Testing in DevOps world
PDF
Automated Testing for Dynamics CRM 1 - CRMUG 2014
PDF
TestingAR XX - Protractor e2e Test Framework - Introduction what we have lear...
PPTX
TFS Build - Continuous Integration
PDF
CCC 2015 tfs admin for good not evil
Deep dive into feature versioning in SharePoint 2010
Jeremy thake introducing alm to share point development implementations (ap...
STLDODN 2015 - How VSO and TFS 2015 Will Rock Your Agile World
Share Point Development With Unit Testing
Continuous Test Automation via CI (CodeMash 2012) - Automating the Agile way
Agile test practices
Continous integration
Simple Continous Integration
Functional & Performance Test Automation with CI
Continous Integration: A Case Study
Continuous Delivery with Dynamics CRM - CRMUG Webinar 2014
How to Perform Test Automation With Gauge & Selenium Framework
TestLink introduction
Testing in TFS
Automated UI Testing
Testing in DevOps world
Automated Testing for Dynamics CRM 1 - CRMUG 2014
TestingAR XX - Protractor e2e Test Framework - Introduction what we have lear...
TFS Build - Continuous Integration
CCC 2015 tfs admin for good not evil
Ad

Viewers also liked (18)

PPTX
Action plan week 2
DOC
MedicAlert Foundation Recognizes South Nassau ER Nurse for Hurricane Sandy Re...
PPTX
Web Vulnerabilities - Building Basic Security Awareness
PDF
sparqs
RTF
St Rosillo Red Natura
PDF
Registro MTE - Frente
PPTX
A human being
DOCX
Manejo excel (10)
PPTX
Vivir en Medellín
DOC
Audiënties door koningin zijn stap te ver
PPTX
Paul.lesson.4.greek.part.2
PDF
Infografía
PPTX
Action plan week 3
PPTX
Ppt mak yong
PPTX
Joget Workflow v5 Training Slides - Module 12 - Version Control
PPTX
Branching in TFS 2010 Part I (Branching Theory)
Action plan week 2
MedicAlert Foundation Recognizes South Nassau ER Nurse for Hurricane Sandy Re...
Web Vulnerabilities - Building Basic Security Awareness
sparqs
St Rosillo Red Natura
Registro MTE - Frente
A human being
Manejo excel (10)
Vivir en Medellín
Audiënties door koningin zijn stap te ver
Paul.lesson.4.greek.part.2
Infografía
Action plan week 3
Ppt mak yong
Joget Workflow v5 Training Slides - Module 12 - Version Control
Branching in TFS 2010 Part I (Branching Theory)
Ad

Similar to A Deeper Look at Team Foundation Server 2012 Version Control (20)

PPT
ClearCase Basics
PDF
Version control with GIT
PDF
Chicago alm user group tfs version control poster - tfvc and git
PDF
Git cheat-sheet-education
PDF
Techmoneyguide
PPTX
TFS Source Control Management
PDF
Git cheat-sheet-education
PDF
test
PDF
Git basics for beginners
PPTX
Obevo Javasig.pptx
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
PDF
Github git-cheat-sheet
ODP
Software Build processes and Git
PPTX
SVN Information
PPTX
Introduction to Git
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
ClearCase Basics
Version control with GIT
Chicago alm user group tfs version control poster - tfvc and git
Git cheat-sheet-education
Techmoneyguide
TFS Source Control Management
Git cheat-sheet-education
test
Git basics for beginners
Obevo Javasig.pptx
Getting Started with Git: A Primer for SVN and TFS Users
Github git-cheat-sheet
Software Build processes and Git
SVN Information
Introduction to Git
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet

More from Steve Lange (20)

PPTX
Visual Studio ALM 2013 - Edition Comparison
PPTX
Team Foundation Server 2012 Reporting
PPTX
Upgrading to TFS 2010
PPTX
Microsoft ALM Platform Overview
PPTX
Team Foundation Server - Tracking & Reporting
PPTX
Visual Studio LightSwitch (Beta 1) Overview
PPTX
Team Foundation Server 2010 - Overview
PPTX
Visual Studio 2010 Testing Overview
PPTX
Team Foundation Server 2010 - Version Control
PPTX
Whats New In 2010 (Msdn & Visual Studio)
PPTX
PHX Session #5 : Architecture Without Big Design Up Front (Garibay)
PPTX
PHX Session #6: More Bang for Your Buck: Getting the Most out of Team Foundat...
PPTX
PHX - Session #4 Treating Databases as First-Class Citizens in Development
PPTX
PHX - Session #2 Test Driven Development: Improving .NET Application Performa...
PPTX
PHX Session #1: Development Best Practices And How Microsoft Helps
PPTX
PHX Session #3 - "It Works on My Machine!" Closing the Loop Between Developme...
PPTX
Big Event Looping Deck
PPTX
Session #6: Get More Bang For Your Buck
PPTX
Session #1: Development Practices And The Microsoft Approach
PPTX
Session #3: "It Works on My Machine!" Closing the Loop Between Development & ...
Visual Studio ALM 2013 - Edition Comparison
Team Foundation Server 2012 Reporting
Upgrading to TFS 2010
Microsoft ALM Platform Overview
Team Foundation Server - Tracking & Reporting
Visual Studio LightSwitch (Beta 1) Overview
Team Foundation Server 2010 - Overview
Visual Studio 2010 Testing Overview
Team Foundation Server 2010 - Version Control
Whats New In 2010 (Msdn & Visual Studio)
PHX Session #5 : Architecture Without Big Design Up Front (Garibay)
PHX Session #6: More Bang for Your Buck: Getting the Most out of Team Foundat...
PHX - Session #4 Treating Databases as First-Class Citizens in Development
PHX - Session #2 Test Driven Development: Improving .NET Application Performa...
PHX Session #1: Development Best Practices And How Microsoft Helps
PHX Session #3 - "It Works on My Machine!" Closing the Loop Between Developme...
Big Event Looping Deck
Session #6: Get More Bang For Your Buck
Session #1: Development Practices And The Microsoft Approach
Session #3: "It Works on My Machine!" Closing the Loop Between Development & ...

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Per capita expenditure prediction using model stacking based on satellite ima...

A Deeper Look at Team Foundation Server 2012 Version Control

  • 1. A Deeper Look at TFS 2012 Version Control Steve Lange Sr. Developer Technology Specialist
  • 4. Web Service SQL Server Version Application backend Control Proxy Communication via Scalable Network-near cache HTTP(S) for versioned artifacts Manageable Runs on IIS
  • 21. Check-in Lock Check-out Lock Less restrictive Prevents any changes from being made by others A check-in lock is less restrictive than a check-out lock. Only applies to server workspaces Other users can make local changes, but Can be applied to files with no pending not check in changes anywhere
  • 26. Read Read the contents of a file or folder Check out Check out and make a pending change to items in a folder Check in Check in items and revise any committed changeset comments Label Label items Lock Lock and unlock folders or files Revise other user's changes Edit the comments on checked-in files, even if another user checked in the file Unlock other user's changes Unlock files locked by other users Undo other user's changes Undo a pending change made by another user Administer labels Edit or delete labels created by another user Manage permissions Manage other users' permissions for folders and files in version control Check in other user's Check in changes that were made by other users. Pending changes will be committed at check-in changes Merge For a given path can merge changes into this path Manage branch For a given path can convert any folder under that path into a branch. Can also edit properties, re-parent, and convert a branch to a folder
  • 28. versionspec Changeset [C]n /v:C8 Label Llabel [file];LMyLabelName Date & Time Dyyyy-mm-ddTxx:xx /version:D2012-03-22 (or any format supported by .NET or on /version:D2012-03-22T09:00 local machine) Workspace (current) W Workspace (specified) Wworkspacename; WResolveRIConflicts;PeterW workspaceowner Tip T
  • 29. tf get [itemspec] [/version:versionspec] [/all] [/overwrite] [/force] [/remap] [/recursive] [/preview] [/noautoresolve] [/noprompt] [/login:username,[password]] tf get *.cs /recursive tf get program.cs;8 tf checkout [/lock:(none|checkin|checkout)] [/recursive] [/encoding:encoding] itemspec [/login: username,[password]] tf checkout program1.cs program2.c
  • 30. tf checkin [/author:author name] [/comment:("comment"|@comment file)] [/noprompt] [/notes:("Note Name"="note text"|@notefile)] [/override:(reason|@reasonfile)] [/recursive] [/saved] [/validate] [itemspec] [/bypass] [/force] [/noautoresolve] [/login:username,[password]] [/new] tf checkin /comment:"Re-implemented Pi calculator" tf checkin program.cs /noprompt tf label labelname[@scope] [/owner:ownername] itemspec [/version:versionspec] [/comment:("comment"|@commentfile)] [/child:(replace|merge)] [/recursive] [login:username,[password]] [/collection:TeamProjectCollectionUrl] tf label goodbuild /version:3 $/src/314.cs tf label goodbuild docs /recursive
  • 31. tf stat[us] itemspec [/collection:TeamProjectCollectionUrl] [/login:username,[password]] ([/workspace:workspacename[;workspaceowner]] | [/shelveset:shelvesetname[;shelvesetowner]]) [/format:(brief|detailed)] [/recursive][/user:(*|username)] [/nodetect] tf stat SolutionA* /recursive tf add itemspec [/lock:(none|checkin|checkout)] [/encoding:filetype] [/noprompt] [/recursive] [/noignore] [/login:username,[password]] tf add *.cs /recursive
  • 36. Steve Lange sr. developer technology specialist stevenl@microsoft.com @stevelange | http://slange.me
  • 37. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • 40. Visual Studio 2012 homepage Downloads Visual Studio 2012 Product Guide Visual Studio 2012 Product Comparison VS 2012 ALM VM and Labs Visual Studio 2012 Readme Visual Studio 2012 Learning Library Articles Videos
  • 41. Using Version Control What's New in Version Control Get Started Develop Your App Suspend Your Work Check In Your Work Isolate Risk View and Manage Past Versions Compare Folders and Files Resolve File Conflicts Work with Version Control Locks Version Control Commands
  • 42. Converting from Visual SourceSafe SVN (by Timely Migration) ClearCase Bridging with Git SVN Bridge
  • 43. ALM with Visual Studio and TFS Cross-Platform Development Extending Team Foundation Server TFS Integration Platform

Editor's Notes

  • #4: http://msdn.microsoft.com/en-us/library/ms252473.aspx
  • #5: http://msdn.microsoft.com/en-us/library/ms252473.aspx
  • #7: Version control security can be applied at any level of scope within a team project (project, branch, folder, file).
  • #10: What these companies need are solutions for delivering modern applications. For modern application development there is Visual Studio 2012. Visual Studio 2012 is the development solution for teams and individuals to handle the challenges of modern development. It is a comprehensive solution for creating apps for a variety of Microsoft platforms of any scope from departmental to enterprise. In this talk you will learn more about modern app development and lifecycle and how Visual Studio helps you create applications that your users will love.
  • #12: This graphic was published by Gartner, Inc. as part of a larger research document and should be evaluated in the context of the entire document. The Gartner document is available upon request from Microsoft  *Gartner does not endorse any vendor, product or service depicted in its research publications, and does not advise technology users to select only those vendors with the highest ratings. Gartner research publications consist of the opinions of Gartner's research organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this research, including any warranties of merchantability or fitness for a particular purpose