Git Version Control for Everyone 11/9/2018 6:27 PM BRK3346 Git Version Control for Everyone Dmitry Lyalin Sr. Product Manager for VSTS + TFS @lyalindotcom Edward Thomson Program Manager for Git in VSTS @ethomson Resources https://aka.ms/Ignite2017-BRK3346 © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Agenda Fundamentals Git fundamentals 11/9/2018 6:27 PM Agenda Fundamentals Git fundamentals Getting started with Git in Windows command-line Your Git Server: Visual Studio Team Services (VSTS) Windows Scenarios Git for any Developer with Visual Studio Git for the Database Administrator with SQL Server Data Tools Git for the System Administrator with PowerShell Mac Scenarios & Open Source Visual Studio Team Services for Mac Developers GitHub – Open Source © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Git Fundamentals Introduction to Git. Windows command-line for Git 11/9/2018 6:27 PM Git Fundamentals Introduction to Git. Windows command-line for Git © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/9/2018 6:27 PM Git Git is a distributed version control system that was primarily designed for managing source code, but can be used to track any kind of files. Git was created in 2005 by Linus Torvalds (of Linux kernel fame) with the goals of: Creating a truly distributed version control system that didn’t limit teams to a linear workflow Not sacrifice performance and ensuring data integrity Making it free to all (GNU General Public License 2) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Junio C Hamano aka “Gitster”
Why did we need a new version control system? 11/9/2018 6:27 PM Why did we need a new version control system? © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/9/2018 6:27 PM Strengths of Git Fully functional offline repo experience on any machine where Git tools run Git is cross-platform, with strong tooling support on Windows, Mac and Linux Consistency, Git commands and principals are the same no matter what operating system or tool you use Portable repositories, with history of all commits, branching/merging, etc. Git usage is widespread, with a large talent pool Git is open source, and it also powers open source thanks to GitHub Git is free © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Getting started with Git command-line tooling for Windows 11/9/2018 6:27 PM Demo: Getting started with Git command-line tooling for Windows © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
What about those others Git command-line tools? 11/9/2018 6:27 PM What about those others Git command-line tools? © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Git CMD – command-line interpreter for running Git commands. 11/9/2018 6:27 PM Git CMD – command-line interpreter for running Git commands. Git Bash – msys2 shell that provides enough of the Portable Operating System Interface (POSIX) to run Bash enabling a Unix like shell for running Git commands on Windows. Git GUI – graphic interface allowing users to make changes to their repository such as: new commits, amending existing ones, creating branches, performing local merges, and fetching/pushing to remote repositories. Gitk is a graphical repository browser that displays changes in a repository or a selected set of commits. Includes visualizing the commit graph, showing information related to each commit, and the files in the trees of each revision. https://git-scm.com/downloads © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Visual Studio Team Services (VSTS) 11/9/2018 6:27 PM Visual Studio Team Services (VSTS) Microsoft cloud hosted developer Software-as-a-Service © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Microsoft’s History with Source Control 11/9/2018 6:27 PM Microsoft’s History with Source Control Team Foundation Server 2005 Team Foundation Server 2008 Team Foundation Server 2010 Team Foundation Server 2012 TFVC Source Safe 3.1: February 14, 1995 Source Safe 4.0: September 12, 1995 Source Safe 5.0: October 7, 1996 Source Safe 6.0: June 3, 1998 Source Safe 2005: January 27, 2006 Team Foundation Server 2013 Team Foundation Server 2015 Team Foundation Server 2016 Team Foundation Server 2017 Team Foundation Server 2018 (RC) TFVC & GIT © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Team Foundation Server (TFS) to SaaS 11/9/2018 6:27 PM Team Foundation Server (TFS) to SaaS On-premises product Software-as-a-Service (SaaS) Visual Studio Online Team Foundation Server 2013 Visual Studio Team Services (VSTS) Team Foundation Server 2015 Team Foundation Server 2016 Team Foundation Server 2017 Team Foundation Server 2018 (RC) TFS “Updates” Three week release cycles VSTS Continuous Feature Delivery © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Visual Studio Product Family 11/9/2018 6:27 PM Visual Studio Product Family Visual Studio IDE (Windows) Visual Studio Community Visual Studio Professional Visual Studio Enterprise Visual Studio IDE (Mac) Visual Studio for Mac Lightweight Code Editor Visual Studio Code On-premises server product for teams Team Foundation Server (TFS) Developer Services Visual Studio Team Services (VSTS) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Git in Visual Studio Team Services (VSTS) 11/9/2018 6:27 PM Demo: Git in Visual Studio Team Services (VSTS) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
RECAP: Visual Studio Team Services (VSTS) 11/9/2018 6:27 PM RECAP: Visual Studio Team Services (VSTS) Git supported in VSTS & TFS 2013+ VSTS: Unlimited free private git repos Git source control integration: Visual Studio, IntellIiJ, Eclipse, Android Studio, Xcode, etc. VSTS web UI: rich code viewer, branching/merging Backlog integration, social coding, pull requests Semantic Code Search Enterprise-Grade Security © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/9/2018 6:27 PM Windows Visual Studio Developers & Database Administrators (DBA’s) PowerShell Administrator © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Git in Visual Studio (IDE) 11/9/2018 6:27 PM Demo: Git in Visual Studio (IDE) Visual Studio Community 2017 SQL Server Data Tools ASP.NET Core 2.0 Tools Python Tools for Visual Studio Visual Studio Team Services © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Git in PowerShell 11/9/2018 6:27 PM Demo: Git in PowerShell PowerShell (Windows 10) PowerShell Module: posh-git © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/9/2018 6:27 PM Mac Developers © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Git + Visual Studio Team Services for Mac Developer 11/9/2018 6:27 PM Demo: Git + Visual Studio Team Services for Mac Developer CI/CD Pipeline for J2EE - Eclipse © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
GitHub – Open Source
Demo: GitHub CI Pipeline for native code (Windows & Linux) 11/9/2018 6:27 PM Demo: GitHub CI Pipeline for native code (Windows & Linux) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Please evaluate this session Tech Ready 15 11/9/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite https://myignite.microsoft.com/evaluations Phone: download and use the Microsoft Ignite mobile app https://aka.ms/ignite.mobileapp Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.
for all people, we're in this together. 11/9/2018 6:27 PM for all people, we're in this together. Thank you! Resources https://aka.ms/Ignite2017-BRK3346 © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.