You can git

Y
You can git
All you need to know about git, GitHub, VSTS, git GUI, etc…
Yu Guan | Microsoft MVP
AGENDA
 history of version(or source) control
 what is git
 git repo providers
 start with GUI
 local vs remote
 git workflow
 some best practices
History of version(or source) control
 In first generation tools, concurrent development was handled solely with locks.
Only one person could be working on a file at a time.
 The second generation tools are a fair bit more permissive about simultaneous
modifications, with one notable restriction. Users must merge the current
revisions into their work before they are allowed to commit.
 The third generation tools allow merge and commit to be separated.
History of version(or source) control
Generation Networking Operations Concurrency Examples
First None One file at a time Locks RCS, SCCS
Second Centralized Multi-file
Merge
before
commit
CVS, SourceSafe,
Subversion,
Team Foundation Server
Third Distributed Changesets
Commit
before
merge
Bazaar,
Git,
Mercurial
what is git
 created by Linus Torvalds in 2005
 distributed version control systems
 on every computer is a full-fledged repository with complete history and full
version tracking abilities
git repo providers
 git != GitHub
Provider
Framework is
open-source?
Support for
other SCM
Open-source
repositories
Space (GB) Free private repositories
GitHub No SVN Yes Unlimited No
GitLab.com Yes No Yes Unlimited
Unlimited projects,
unlimited collaborators
bitbucket.org No Mercurial Yes Unlimited
Unlimited projects,
5 collaborators
Codebase No
Mercurial/SV
N
Public access
available
0.05
1 project (unlimited repos),
2 collaborators
SourceForge.net Yes Hg, SVN Yes Unlimited No
Visual Studio
Team Services
No TFVC No Unlimited Unlimited, 5 users
start with GUI
 Git Extensions
 GitHub Desktop
 Visual Studio 2015/2017
Git Extensions
 https://github.com/gitextensions/gitextensions
Visual Studio 2015/2017
local vs remote
 create and work with local repo
 you don’t need to install any source control server side software
 create and use remote repo
 GitHub
 VSTS
git workflow
 1. Create a branch for the changes you plan to make and give it a name, such as
fix-bug-3214 or cool-feature-x.
 2. Commit changes to your branch. People often have multiple commits for a
bug fix or feature.
 3. Push your branch to the remote repository.
 4. Create a pull request so other people can review your changes. To incorporate
feedback, you might need to make more commits and push more changes.
 5. Complete your pull request and resolve any merge conflicts from changes
other people made after you created your branch.
git workflow
Some best practices
 Branch naming convention
 feature-{alias/dev/qa}-{main}-{detail}
 update-{alias/dev/qa}-{main}-{detail}
 bugfix-{alias/dev/qa}-{main}-{detail}
 hotfix-{alias/dev/qa}-{main}-{detail}
 lab-{alias/dev/qa}-{main}-{detail}
 wip-{alias/dev/qa}-{main}-{detail}
 Pull Request / Code review
THANK YOU!
Q&A
1 von 14

Recomendados

Github von
GithubGithub
GithubIFEDAYO ADEYEMI
200 views14 Folien
Intro to git and git hub von
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
212 views13 Folien
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo von
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGit in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGina Bustos
276 views36 Folien
Github 101 An Adventurer's Guide To Open Source von
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open SourcePrachitibhukan
147 views36 Folien
Git and GitHub von
Git and GitHubGit and GitHub
Git and GitHubRick Umali
507 views20 Folien
Github von
GithubGithub
Githubabdulkareem_nm
329 views5 Folien

Más contenido relacionado

Was ist angesagt?

Git and GitHub | Concept about Git and GitHub Process | Git Process overview von
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewRueful Robin
400 views21 Folien
Git presentation von
Git presentationGit presentation
Git presentationEdson Celio
78 views13 Folien
Brush up on using github von
Brush up on using githubBrush up on using github
Brush up on using githubSebin Benjamin
67 views14 Folien
Exploring Git in Visual Studio 2013 von
Exploring Git in Visual Studio 2013Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013Sunny Sharma
545 views18 Folien
Github von
GithubGithub
Githubsiva sandeep
107 views9 Folien

Was ist angesagt?(20)

Git and GitHub | Concept about Git and GitHub Process | Git Process overview von Rueful Robin
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Rueful Robin400 views
Exploring Git in Visual Studio 2013 von Sunny Sharma
Exploring Git in Visual Studio 2013Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
Sunny Sharma545 views
Git in 10 minutes (WordCamp London 2018) von Borek Bernard
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)
Borek Bernard350 views
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg von Nisha Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Nisha Garg104 views
Introduction to git and Github von Wycliff1
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1126 views

Similar a You can git

Mini-training: Let’s Git It! von
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Betclic Everest Group Tech Team
1.9K views23 Folien
Git Lab Introduction von
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
850 views24 Folien
Introduction to Git & GitHub von
Introduction to Git & GitHubIntroduction to Git & GitHub
Introduction to Git & GitHubWasit Shafi
19 views15 Folien
Git Training von
Git TrainingGit Training
Git TrainingPrabal Tyagi
105 views11 Folien
Introduction to GitHub, Open Source and Tech Article von
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
225 views58 Folien
Git essential training & sharing self von
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing selfChen-Tien Tsai
3.5K views80 Folien

Similar a You can git(20)

Introduction to Git & GitHub von Wasit Shafi
Introduction to Git & GitHubIntroduction to Git & GitHub
Introduction to Git & GitHub
Wasit Shafi19 views
Introduction to GitHub, Open Source and Tech Article von PRIYATHAMDARISI
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI225 views
Git essential training & sharing self von Chen-Tien Tsai
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing self
Chen-Tien Tsai3.5K views
BLUG 2012 Version Control for Notes Developers von Martin Jinoch
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
Martin Jinoch2.5K views
Git Tutorial von Ahmed Taha
Git Tutorial Git Tutorial
Git Tutorial
Ahmed Taha522 views
Git Session 2K23.pptx von Eshaan35
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35253 views

Más de Yu GUAN

Canada Chinese Microsoft Tech Club Event 1 von
Canada Chinese Microsoft Tech Club Event 1Canada Chinese Microsoft Tech Club Event 1
Canada Chinese Microsoft Tech Club Event 1Yu GUAN
125 views10 Folien
Asp netmvc e03 von
Asp netmvc e03Asp netmvc e03
Asp netmvc e03Yu GUAN
53 views51 Folien
A Journey to Azure von
A Journey to AzureA Journey to Azure
A Journey to AzureYu GUAN
281 views24 Folien
Dream career dot NET von
Dream career dot NETDream career dot NET
Dream career dot NETYu GUAN
117 views22 Folien
NuGet package CI and CD von
NuGet package CI and CDNuGet package CI and CD
NuGet package CI and CDYu GUAN
331 views13 Folien
Hosting your own NuGet private repository von
Hosting your own NuGet private repositoryHosting your own NuGet private repository
Hosting your own NuGet private repositoryYu GUAN
261 views9 Folien

Más de Yu GUAN(11)

Canada Chinese Microsoft Tech Club Event 1 von Yu GUAN
Canada Chinese Microsoft Tech Club Event 1Canada Chinese Microsoft Tech Club Event 1
Canada Chinese Microsoft Tech Club Event 1
Yu GUAN125 views
Asp netmvc e03 von Yu GUAN
Asp netmvc e03Asp netmvc e03
Asp netmvc e03
Yu GUAN53 views
A Journey to Azure von Yu GUAN
A Journey to AzureA Journey to Azure
A Journey to Azure
Yu GUAN281 views
Dream career dot NET von Yu GUAN
Dream career dot NETDream career dot NET
Dream career dot NET
Yu GUAN117 views
NuGet package CI and CD von Yu GUAN
NuGet package CI and CDNuGet package CI and CD
NuGet package CI and CD
Yu GUAN331 views
Hosting your own NuGet private repository von Yu GUAN
Hosting your own NuGet private repositoryHosting your own NuGet private repository
Hosting your own NuGet private repository
Yu GUAN261 views
Windows service best practice von Yu GUAN
Windows service best practiceWindows service best practice
Windows service best practice
Yu GUAN1.2K views
Wcf best practice von Yu GUAN
Wcf best practiceWcf best practice
Wcf best practice
Yu GUAN298 views
Unleash the power of code reuse - creating plugins for Xamarin von Yu GUAN
Unleash the power of code reuse - creating plugins for XamarinUnleash the power of code reuse - creating plugins for Xamarin
Unleash the power of code reuse - creating plugins for Xamarin
Yu GUAN194 views
A Journey To Microsoft Azure E00 Azure 101 von Yu GUAN
A Journey To Microsoft Azure E00 Azure 101A Journey To Microsoft Azure E00 Azure 101
A Journey To Microsoft Azure E00 Azure 101
Yu GUAN1.1K views
Welcome to power point von Yu GUAN
Welcome to power pointWelcome to power point
Welcome to power point
Yu GUAN26 views

Último

Introduction to Maven von
Introduction to MavenIntroduction to Maven
Introduction to MavenJohn Valentino
7 views10 Folien
Playwright Retries von
Playwright RetriesPlaywright Retries
Playwright Retriesartembondar5
7 views1 Folie
Ports-and-Adapters Architecture for Embedded HMI von
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMIBurkhard Stubert
35 views19 Folien
EV Charging App Case von
EV Charging App Case EV Charging App Case
EV Charging App Case iCoderz Solutions
10 views1 Folie
Flask-Python von
Flask-PythonFlask-Python
Flask-PythonTriloki Gupta
10 views12 Folien
Introduction to Git Source Control von
Introduction to Git Source ControlIntroduction to Git Source Control
Introduction to Git Source ControlJohn Valentino
8 views18 Folien

Último(20)

Ports-and-Adapters Architecture for Embedded HMI von Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMI
Burkhard Stubert35 views
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P... von NimaTorabi2
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
NimaTorabi217 views
JioEngage_Presentation.pptx von admin125455
JioEngage_Presentation.pptxJioEngage_Presentation.pptx
JioEngage_Presentation.pptx
admin1254559 views
How Workforce Management Software Empowers SMEs | TraQSuite von TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuiteHow Workforce Management Software Empowers SMEs | TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuite
TraQSuite7 views
Advanced API Mocking Techniques Using Wiremock von Dimpy Adhikary
Advanced API Mocking Techniques Using WiremockAdvanced API Mocking Techniques Using Wiremock
Advanced API Mocking Techniques Using Wiremock
Dimpy Adhikary5 views
Electronic AWB - Electronic Air Waybill von Freightoscope
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill
Freightoscope 6 views
Quality Engineer: A Day in the Life von John Valentino
Quality Engineer: A Day in the LifeQuality Engineer: A Day in the Life
Quality Engineer: A Day in the Life
John Valentino10 views
tecnologia18.docx von nosi6702
tecnologia18.docxtecnologia18.docx
tecnologia18.docx
nosi67026 views
Bootstrapping vs Venture Capital.pptx von Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic16 views
Automated Testing of Microsoft Power BI Reports von RTTS
Automated Testing of Microsoft Power BI ReportsAutomated Testing of Microsoft Power BI Reports
Automated Testing of Microsoft Power BI Reports
RTTS11 views
Streamlining Your Business Operations with Enterprise Application Integration... von Flexsin
Streamlining Your Business Operations with Enterprise Application Integration...Streamlining Your Business Operations with Enterprise Application Integration...
Streamlining Your Business Operations with Enterprise Application Integration...
Flexsin 5 views

You can git

  • 1. You can git All you need to know about git, GitHub, VSTS, git GUI, etc… Yu Guan | Microsoft MVP
  • 2. AGENDA  history of version(or source) control  what is git  git repo providers  start with GUI  local vs remote  git workflow  some best practices
  • 3. History of version(or source) control  In first generation tools, concurrent development was handled solely with locks. Only one person could be working on a file at a time.  The second generation tools are a fair bit more permissive about simultaneous modifications, with one notable restriction. Users must merge the current revisions into their work before they are allowed to commit.  The third generation tools allow merge and commit to be separated.
  • 4. History of version(or source) control Generation Networking Operations Concurrency Examples First None One file at a time Locks RCS, SCCS Second Centralized Multi-file Merge before commit CVS, SourceSafe, Subversion, Team Foundation Server Third Distributed Changesets Commit before merge Bazaar, Git, Mercurial
  • 5. what is git  created by Linus Torvalds in 2005  distributed version control systems  on every computer is a full-fledged repository with complete history and full version tracking abilities
  • 6. git repo providers  git != GitHub Provider Framework is open-source? Support for other SCM Open-source repositories Space (GB) Free private repositories GitHub No SVN Yes Unlimited No GitLab.com Yes No Yes Unlimited Unlimited projects, unlimited collaborators bitbucket.org No Mercurial Yes Unlimited Unlimited projects, 5 collaborators Codebase No Mercurial/SV N Public access available 0.05 1 project (unlimited repos), 2 collaborators SourceForge.net Yes Hg, SVN Yes Unlimited No Visual Studio Team Services No TFVC No Unlimited Unlimited, 5 users
  • 7. start with GUI  Git Extensions  GitHub Desktop  Visual Studio 2015/2017
  • 10. local vs remote  create and work with local repo  you don’t need to install any source control server side software  create and use remote repo  GitHub  VSTS
  • 11. git workflow  1. Create a branch for the changes you plan to make and give it a name, such as fix-bug-3214 or cool-feature-x.  2. Commit changes to your branch. People often have multiple commits for a bug fix or feature.  3. Push your branch to the remote repository.  4. Create a pull request so other people can review your changes. To incorporate feedback, you might need to make more commits and push more changes.  5. Complete your pull request and resolve any merge conflicts from changes other people made after you created your branch.
  • 13. Some best practices  Branch naming convention  feature-{alias/dev/qa}-{main}-{detail}  update-{alias/dev/qa}-{main}-{detail}  bugfix-{alias/dev/qa}-{main}-{detail}  hotfix-{alias/dev/qa}-{main}-{detail}  lab-{alias/dev/qa}-{main}-{detail}  wip-{alias/dev/qa}-{main}-{detail}  Pull Request / Code review