Paul S Waters pswaters@outlook.com Getting Git
Thanks to our Sponsors!
Agenda Overview Git basics Tools Using Git in VSTS
Overview
Why use source control? Better team dynamics Code transparency Rollback and get previous versions (Sleep at night) Enable automation of builds and deployment Demonstrate with compliance and auditing Sync database and application changes
Why use Git? It's distributed, and light weight Work offline and commit often Easily undo mistakes Enable agile workflows, and practices
Keys to success Be committed Communicate Work with Git; not against it Set guidelines Naming conventions Databases Local development File locations Cross database scripts Learn from mistakes Git Style Guide - https://github.com/agis/git-style-guide
Learning Resources VSTS Labs - https://almvm.azurewebsites.net/labs/vsts/ Book: Pro Git - https://git-scm.com/book/en/v2 Git website - https://git-scm.com/ VSTS Labs - https://almvm.azurewebsites.net/labs/vsts/
Git Basics Git Basics GitBasics.pptx Slide Deck slides 4 - 11. Source: http://www.cs.washington.edu/390a/ https://courses.cs.washington.edu/courses/cse390a/15au/lectures.shtml
Tooling Git Basics GitBasics.pptx Slide Deck slides 4 - 11. Source: http://www.cs.washington.edu/390a/ https://courses.cs.washington.edu/courses/cse390a/15au/lectures.shtml
Tools SSMS Visual Studio Git for Windows Plug-ins Team Explorer 3rd Party Red gate Apex Visual Studio Git for Windows SSMS Enable Team Explorer - https://cloudblogs.microsoft.com/sqlserver/2016/11/21/source-control-in-sql-server-management-studio-ssms/ There are cases in which all but the Visual Source Safe package must be commented. As of this presentation, every time SSMS is updated the ssms.pkgundef file will need to be edited.
Using Git with VSTS Create .gitignore - https://github.com/github/gitignore Folders – must have a file in them Clone Repo location Branch Create from VSTS Repo VSTS Work Item Backlog / User Stories, Features SSMS Visual Studio Commit Push Pull Requests Merge Conflicts Rebase Default reviewers Code review Complete Squash Changes