SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Git’in on Windows
An introduction to git on the
     Microsoft platform
About Me
Stacy Vicknair, MVP MCPD
Development Consultant for Sparkhound

Blog - http://www.wtfnext.com
BRAG - http://www.braglunch.com
TM - http://www.batonrougespeaks.com

Twitter: @svickn
Email: stacy.vicknair@sparkhound.com
Agenda
•   What is git?
•   Why (or why not) choose git?
•   Where do I git it?
•   git’in the basics
•   git’in against GitHub
•   git’in against TFS
•   Resources
What is git?
• Distributed Version Control System (DVCS)
  – Like TFS’s source control, but “distributed”
• Open Source under GNU LGPL v2.1
• Freely available from http://git-scm.com
What is DVCS?
•   No true “central repository”
•   Not a checkout, it’s a clone
•   Check in when you want
•   Push to central server when it’s stable
Who’s git’in it
•   The Linux Kernel
•   Google for the Android OS
•   Ruby on Rails
•   PostgreSQL
•   Eclipse
•   Perl
•   Codeplex
•   … Git.
Why (or why not) choose git?
Pros                                Cons
• Free                              • Windows Second-Class
• Distributed (self replicating)    • Barrier to entry
• Lightweight                       • Different permissions
• Secure via SSH / HTTPS              paradigm
• Changeset driven                  • It’s not ALM, just DVCS
• Easy branching / merging          • Single repo management
                                       – Google’s Repo
• Disconnected check-ins

*based on Clearvision White Paper
Where do I git it?
                                         (see what I did there)

git                                                   GitExtensions
http://git-scm.com/                                   GUI / Explorer and VS integration for Windows
                                                      http://code.google.com/p/msysgit/

msysgit
Git for Windows                                       gitflow
http://code.google.com/p/msysgit/                     Git extensions for high level branch process workflow
                                                      https://github.com/nvie/gitflow

posh-git
Git extensions for Powershell
https://github.com/dahlbyk/posh-git


git-tfs
Allows for TFS access via git
https://github.com/git-tfs/git-tfs
Git’in the Basics
Om nom nom knowledge
Git Basics: Staging




    Image from http://progit.org
Git Basics: Ground level
git init – Create a repo
git add – Stage files in the index
git commit – Commit a file
git status – List current modifications
git log – List of checkin history
Git Basics: Stash, Branch and Merge
git stash – Hold changes for later retrieval
git branch – Create, delete and list branches
git checkout – Switch branches
git rebase – Rebase branch from parent
git merge – Merge from child branch
Git Intermediates:
                    Repo Administration




Images from http://whygitisbetterthanx.com
Git Intermediates:
Repo Administration
Git Intermediates:
Repo Administration
Git Intermediates:
Repo Administration
Git’in against GitHub
        yeehaw
Git’in GitHub: Creating and Cloning
• GitHub requires SSH
• git clone – Copy existing repository locally
• git push - Push changes to a different repo
• git remote – Create, list and delete connected
  repos
• git tag – Tags a version of the code
Git’in against TFS
       Moo.
Git’in TFS: clone, .gitignore, and checkintool

• .gitignore files help prevent unwanted
  checkins
• git tfs clone – Pull TFS repo with history
• git tfs quickclone – No history
• git tfs checkintool – TFS-esque checkin process
• git tfs checkin – Git-esque quick checkin
Agenda
•   What is git?
•   Why (or why not) choose git?
•   Where do I git it?
•   git’in the basics
•   git’in against GitHub
•   git’in against TFS
•   Resources
Resources
Tutorials
                                                       stacy.vicknair@sparkhound.com
http://progit.org
http://book.git-scm.com/                                                      @svickn

Downloads
http://git-scm.com/
http://code.google.com/p/msysgit/
https://github.com/dahlbyk/posh-git
https://github.com/git-tfs/git-tfs
http://code.google.com/p/msysgit/
https://github.com/nvie/gitflow

Presentation Resources
http://stackoverflow.com/questions/4140133/how-does-tfss-shelveset-model-compare-to-a-dvcs
http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx
http://nathanj.github.com/gitguide/tour.html
http://www.clearvision-cm.com/whitepapers/Clearvision%20-%20Git%20White%20Paper.pdf
http://whygitisbetterthanx.com

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Git & Github
Git & GithubGit & Github
Git & Github
 
Git kelvin
Git   kelvinGit   kelvin
Git kelvin
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
 
Open source
Open sourceOpen source
Open source
 
Git for Beginners
Git for BeginnersGit for Beginners
Git for Beginners
 
Mini git tutorial
Mini git tutorialMini git tutorial
Mini git tutorial
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Up GitLab Presentation 2015
Up GitLab Presentation 2015Up GitLab Presentation 2015
Up GitLab Presentation 2015
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Git advanced
Git advancedGit advanced
Git advanced
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentals
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Git basics
Git basicsGit basics
Git basics
 
GitHub
GitHubGitHub
GitHub
 
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and MygetWhy we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
 
How Git and Gerrit make you more productive
How Git and Gerrit make you more productiveHow Git and Gerrit make you more productive
How Git and Gerrit make you more productive
 
Know the Science behind WorkFlows using Git & GitHhub
Know the Science behind WorkFlows using Git & GitHhubKnow the Science behind WorkFlows using Git & GitHhub
Know the Science behind WorkFlows using Git & GitHhub
 

Ähnlich wie Git Windows Intro

Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An IntroductionBehzad Altaf
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexyAilsa126
 
Git简介
Git简介Git简介
Git简介clvrobj
 
Why Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anywaysWhy Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anywaysCarlos Taborda
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubBigBlueHat
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsGit Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsChris Bohatka
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitColin Su
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIsTim Osborn
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configurationKishor Kumar
 
Git presentation
Git presentationGit presentation
Git presentationEdson Celio
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsGorav Singal
 
Git version control and trunk based approach with VSTS
Git version control and trunk based approach with VSTSGit version control and trunk based approach with VSTS
Git version control and trunk based approach with VSTSMurughan Palaniachari
 
Practical Git - NYC Code Camp
Practical Git - NYC Code CampPractical Git - NYC Code Camp
Practical Git - NYC Code CampChristopher Gomez
 

Ähnlich wie Git Windows Intro (20)

Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexy
 
Git简介
Git简介Git简介
Git简介
 
Why Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anywaysWhy Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anyways
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsGit Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basics
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Demo
DemoDemo
Demo
 
Git
GitGit
Git
 
Git basics
Git basicsGit basics
Git basics
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Git presentation
Git presentationGit presentation
Git presentation
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
 
Git Heaven with Wakanda
Git Heaven with WakandaGit Heaven with Wakanda
Git Heaven with Wakanda
 
Git Presentation
Git PresentationGit Presentation
Git Presentation
 
Git version control and trunk based approach with VSTS
Git version control and trunk based approach with VSTSGit version control and trunk based approach with VSTS
Git version control and trunk based approach with VSTS
 
Practical Git - NYC Code Camp
Practical Git - NYC Code CampPractical Git - NYC Code Camp
Practical Git - NYC Code Camp
 
Intro to git
Intro to gitIntro to git
Intro to git
 

Mehr von Stacy Vicknair

Systems Thinking for Engineering Leaders.pdf
Systems Thinking for Engineering Leaders.pdfSystems Thinking for Engineering Leaders.pdf
Systems Thinking for Engineering Leaders.pdfStacy Vicknair
 
The Game Master's Guide to People Management
The Game Master's Guide to People ManagementThe Game Master's Guide to People Management
The Game Master's Guide to People ManagementStacy Vicknair
 
Maintainable Documentation with Sphinx
Maintainable Documentation with SphinxMaintainable Documentation with Sphinx
Maintainable Documentation with SphinxStacy Vicknair
 
Building Faster Horses: Taking Over An Existing Software Product
Building Faster Horses: Taking Over An Existing Software ProductBuilding Faster Horses: Taking Over An Existing Software Product
Building Faster Horses: Taking Over An Existing Software ProductStacy Vicknair
 
ASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveStacy Vicknair
 
ASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveStacy Vicknair
 
Asp.net routing with mvc deep dive
Asp.net routing with mvc deep diveAsp.net routing with mvc deep dive
Asp.net routing with mvc deep diveStacy Vicknair
 

Mehr von Stacy Vicknair (7)

Systems Thinking for Engineering Leaders.pdf
Systems Thinking for Engineering Leaders.pdfSystems Thinking for Engineering Leaders.pdf
Systems Thinking for Engineering Leaders.pdf
 
The Game Master's Guide to People Management
The Game Master's Guide to People ManagementThe Game Master's Guide to People Management
The Game Master's Guide to People Management
 
Maintainable Documentation with Sphinx
Maintainable Documentation with SphinxMaintainable Documentation with Sphinx
Maintainable Documentation with Sphinx
 
Building Faster Horses: Taking Over An Existing Software Product
Building Faster Horses: Taking Over An Existing Software ProductBuilding Faster Horses: Taking Over An Existing Software Product
Building Faster Horses: Taking Over An Existing Software Product
 
ASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveASP.NET Routing Deep Dive
ASP.NET Routing Deep Dive
 
ASP.NET Routing Deep Dive
ASP.NET Routing Deep DiveASP.NET Routing Deep Dive
ASP.NET Routing Deep Dive
 
Asp.net routing with mvc deep dive
Asp.net routing with mvc deep diveAsp.net routing with mvc deep dive
Asp.net routing with mvc deep dive
 

Kürzlich hochgeladen

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Kürzlich hochgeladen (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

Git Windows Intro

  • 1. Git’in on Windows An introduction to git on the Microsoft platform
  • 2. About Me Stacy Vicknair, MVP MCPD Development Consultant for Sparkhound Blog - http://www.wtfnext.com BRAG - http://www.braglunch.com TM - http://www.batonrougespeaks.com Twitter: @svickn Email: stacy.vicknair@sparkhound.com
  • 3. Agenda • What is git? • Why (or why not) choose git? • Where do I git it? • git’in the basics • git’in against GitHub • git’in against TFS • Resources
  • 4. What is git? • Distributed Version Control System (DVCS) – Like TFS’s source control, but “distributed” • Open Source under GNU LGPL v2.1 • Freely available from http://git-scm.com
  • 5. What is DVCS? • No true “central repository” • Not a checkout, it’s a clone • Check in when you want • Push to central server when it’s stable
  • 6. Who’s git’in it • The Linux Kernel • Google for the Android OS • Ruby on Rails • PostgreSQL • Eclipse • Perl • Codeplex • … Git.
  • 7. Why (or why not) choose git? Pros Cons • Free • Windows Second-Class • Distributed (self replicating) • Barrier to entry • Lightweight • Different permissions • Secure via SSH / HTTPS paradigm • Changeset driven • It’s not ALM, just DVCS • Easy branching / merging • Single repo management – Google’s Repo • Disconnected check-ins *based on Clearvision White Paper
  • 8. Where do I git it? (see what I did there) git GitExtensions http://git-scm.com/ GUI / Explorer and VS integration for Windows http://code.google.com/p/msysgit/ msysgit Git for Windows gitflow http://code.google.com/p/msysgit/ Git extensions for high level branch process workflow https://github.com/nvie/gitflow posh-git Git extensions for Powershell https://github.com/dahlbyk/posh-git git-tfs Allows for TFS access via git https://github.com/git-tfs/git-tfs
  • 9. Git’in the Basics Om nom nom knowledge
  • 10. Git Basics: Staging Image from http://progit.org
  • 11. Git Basics: Ground level git init – Create a repo git add – Stage files in the index git commit – Commit a file git status – List current modifications git log – List of checkin history
  • 12. Git Basics: Stash, Branch and Merge git stash – Hold changes for later retrieval git branch – Create, delete and list branches git checkout – Switch branches git rebase – Rebase branch from parent git merge – Merge from child branch
  • 13. Git Intermediates: Repo Administration Images from http://whygitisbetterthanx.com
  • 18. Git’in GitHub: Creating and Cloning • GitHub requires SSH • git clone – Copy existing repository locally • git push - Push changes to a different repo • git remote – Create, list and delete connected repos • git tag – Tags a version of the code
  • 20. Git’in TFS: clone, .gitignore, and checkintool • .gitignore files help prevent unwanted checkins • git tfs clone – Pull TFS repo with history • git tfs quickclone – No history • git tfs checkintool – TFS-esque checkin process • git tfs checkin – Git-esque quick checkin
  • 21. Agenda • What is git? • Why (or why not) choose git? • Where do I git it? • git’in the basics • git’in against GitHub • git’in against TFS • Resources
  • 22. Resources Tutorials stacy.vicknair@sparkhound.com http://progit.org http://book.git-scm.com/ @svickn Downloads http://git-scm.com/ http://code.google.com/p/msysgit/ https://github.com/dahlbyk/posh-git https://github.com/git-tfs/git-tfs http://code.google.com/p/msysgit/ https://github.com/nvie/gitflow Presentation Resources http://stackoverflow.com/questions/4140133/how-does-tfss-shelveset-model-compare-to-a-dvcs http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx http://nathanj.github.com/gitguide/tour.html http://www.clearvision-cm.com/whitepapers/Clearvision%20-%20Git%20White%20Paper.pdf http://whygitisbetterthanx.com