SlideShare a Scribd company logo
© 2018 NTT DATA, Inc. All rights reserved.
GIT
Client Name
© 2018 NTT DATA, Inc. All rights reserved. 2
Quote by Linus Torvalds
“I’m an egotistical bastard, and I name all my
projects after myself. First ‘Linux’, now ‘GIT’.”
-Linus Torvalds
3 © 2018 NTT DATA, Inc. All rights reserved.
Agenda
➢ Version Control
➢ Introduction to GIT
➢ Benefits of GIT
➢ GIT Installation
➢ Basic Operation
➢ Branching and Merging
© 2018 NTT DATA, Inc. All rights reserved. 4
Why Version Control?
© 2018 NTT DATA, Inc. All rights reserved. 5
Sharing files and Working together
© 2018 NTT DATA, Inc. All rights reserved. 6
Undoing Changes and Tracking Decisions.
Undoing changes Tracking Decisions
© 2018 NTT DATA, Inc. All rights reserved. 7
About Version Control
© 2018 NTT DATA, Inc. All rights reserved. 8
Version Control
Version Control
Systems
Local Version
Control
Central
Version
Control
Distributed
Version
Control
Keeps track on project history.
Allows you to revert files to its previous state.
A VCS also provide a collaboration environment.
Can easily recover.
Version Control Systems
© 2018 NTT DATA, Inc. All rights reserved. 9
Version Control
Version Control
Systems
Local Version
Control
Central
Version
Control
Distributed
Version
Control
E
Error Prone.
One Database.
Version 1
Version 3
Version 2
Version Database
File
Annotations
Local Version Control
© 2018 NTT DATA, Inc. All rights reserved. 10
Version Control
Version Control
Systems
Local Version
Control
Central
Version
Control
Distributed
Version
Control
Collaborate with other developers.
Single Server.
Single point of failure.
Central Version Control
© 2018 NTT DATA, Inc. All rights reserved. 11
Version Control
Version Control
Systems
Local Version
Control
Central
Version
Control
Distributed
Version
Control
Distributed Version Control
They fully clone the repository.
You can collaborate with many different groups in different ways.
Bring a local repository up to date with a remote repository.
© 2018 NTT DATA, Inc. All rights reserved. 12
Introduction to GIT
© 2018 NTT DATA, Inc. All rights reserved. 13
Background
➢The initial version of GIT came out in April 2005.
➢Incredibly fast.
➢ Very efficient with large projects.
➢Exceptional Branching.
© 2018 NTT DATA, Inc. All rights reserved. 14
➢Distributed Version Control.
➢Globally unique identifiers for all objects- SHA1
So What is GIT?
© 2018 NTT DATA, Inc. All rights reserved. 15
Why GIT?
Subversion
© 2018 NTT DATA, Inc. All rights reserved. 16
Why GIT?
GIT
© 2018 NTT DATA, Inc. All rights reserved. 17
Benefits of Git
© 2018 NTT DATA, Inc. All rights reserved. 18
Benefits of Git
Synchronization Safety
Simplicity
Flexibility
Availability
Performance
© 2018 NTT DATA, Inc. All rights reserved. 19
Pushing Changes
© 2018 NTT DATA, Inc. All rights reserved. 20
Local Access
SSH(authentication & Encryption)
Git Protocol
HTTP (public repositories)
Transferring Changes
© 2018 NTT DATA, Inc. All rights reserved. 21
The INDEX
Working Directory Staging Area Git Directory
(repository)
Checkout the project
Stage files
Commit
© 2018 NTT DATA, Inc. All rights reserved. 22
GIT Installation
© 2018 NTT DATA, Inc. All rights reserved. 23
GIT Installation
C:> mkdir CoolProject
C:> cd CoolProject
C:CoolProject > git init
Initialized empty Git repository in C:/CoolProject/.git
C:CoolProject > notepad README.txt
C:CoolProject > git add .
C:CoolProject > git commit -m 'my first commit'
[master (root-commit) 7106a52] my first commit
1 file changed, 1 insertion(+)
create mode 100644 README.txt
© 2018 NTT DATA, Inc. All rights reserved. 24
Basic Operations
© 2018 NTT DATA, Inc. All rights reserved. 25
Git Add & Git Status
Git Add
Git Status
© 2018 NTT DATA, Inc. All rights reserved. 26
Git Diff & Git Commit
Git Diff Git Commit
© 2018 NTT DATA, Inc. All rights reserved. 27
Git Push & Pull
© 2018 NTT DATA, Inc. All rights reserved. 28
Git Reset & Git RM
Git Reset Git RM
© 2018 NTT DATA, Inc. All rights reserved. 29
Git Log & Git Tag
Git Log
Git Tag
© 2018 NTT DATA, Inc. All rights reserved. 30
Branching and Merging
© 2018 NTT DATA, Inc. All rights reserved. 31
➢Branching means that you diverge from your main line.
➢One of Gits major feature.
Branching and Merging
© 2018 NTT DATA, Inc. All rights reserved. 32
Branching and Merging(1)
Git checkout (branchName) Git checkout –b branchName
© 2018 NTT DATA, Inc. All rights reserved. 33
Branching and Merging Commands
Git Merge (branchName)
Git checkout –b branchName
© 2018 NTT DATA, Inc. All rights reserved. 34
Branching and Merging -- Example
Fig 3
Fig 2
Fig 1
Fig 4 Fig 5
© 2018 NTT DATA, Inc. All rights reserved. 35
SUMMARY
© 2018 NTT DATA, Inc. All rights reserved. 36
SUMMARY
© 2018 NTT DATA, Inc. All rights reserved.

More Related Content

Similar to Git

[2020 git lab commit] continuous infrastructure
[2020 git lab commit] continuous infrastructure[2020 git lab commit] continuous infrastructure
[2020 git lab commit] continuous infrastructure
Rodrigo Stefani Domingues
 
Git Ninja (bigapp KT)
Git Ninja (bigapp KT)Git Ninja (bigapp KT)
Git Ninja (bigapp KT)
Ashok Kumar
 
Git
GitGit
git presentation
git presentation git presentation
git presentation
Belal Quamar
 
Optimize Your Enterprise Git Webinar
Optimize Your Enterprise Git WebinarOptimize Your Enterprise Git Webinar
Optimize Your Enterprise Git Webinar
CollabNet
 
Choosing Git hosting service
Choosing Git hosting serviceChoosing Git hosting service
Choosing Git hosting service
Yoram Michaeli
 
Introduction To Git For Version Control Architecture And Common Commands Comp...
Introduction To Git For Version Control Architecture And Common Commands Comp...Introduction To Git For Version Control Architecture And Common Commands Comp...
Introduction To Git For Version Control Architecture And Common Commands Comp...
SlideTeam
 
Don't Let Git Get Your Goat!
Don't Let Git Get Your Goat!Don't Let Git Get Your Goat!
Don't Let Git Get Your Goat!
CollabNet
 
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdfUC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
Wlamir Molinari
 
Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)
Joel W. King
 
Git/Gerrit with TeamForge
Git/Gerrit with TeamForgeGit/Gerrit with TeamForge
Git/Gerrit with TeamForge
CollabNet
 
Enterprise Git Adoption Webinar - Chinese
Enterprise Git Adoption Webinar - ChineseEnterprise Git Adoption Webinar - Chinese
Enterprise Git Adoption Webinar - Chinese
CollabNet
 
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Edureka!
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
uzair
 
Introduction to Node-RED
Introduction to Node-REDIntroduction to Node-RED
Introduction to Node-RED
nodered_ug_jp
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Yan Vugenfirer
 
Source Control with Git & GitHub
 Source Control with Git & GitHub Source Control with Git & GitHub
Source Control with Git & GitHub
Ronny Orbach
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
Krunal Doshi
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
Md. Mujahid Islam
 
Lets git to it
Lets git to itLets git to it
Lets git to it
Yoram Michaeli
 

Similar to Git (20)

[2020 git lab commit] continuous infrastructure
[2020 git lab commit] continuous infrastructure[2020 git lab commit] continuous infrastructure
[2020 git lab commit] continuous infrastructure
 
Git Ninja (bigapp KT)
Git Ninja (bigapp KT)Git Ninja (bigapp KT)
Git Ninja (bigapp KT)
 
Git
GitGit
Git
 
git presentation
git presentation git presentation
git presentation
 
Optimize Your Enterprise Git Webinar
Optimize Your Enterprise Git WebinarOptimize Your Enterprise Git Webinar
Optimize Your Enterprise Git Webinar
 
Choosing Git hosting service
Choosing Git hosting serviceChoosing Git hosting service
Choosing Git hosting service
 
Introduction To Git For Version Control Architecture And Common Commands Comp...
Introduction To Git For Version Control Architecture And Common Commands Comp...Introduction To Git For Version Control Architecture And Common Commands Comp...
Introduction To Git For Version Control Architecture And Common Commands Comp...
 
Don't Let Git Get Your Goat!
Don't Let Git Get Your Goat!Don't Let Git Get Your Goat!
Don't Let Git Get Your Goat!
 
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdfUC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
 
Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)
 
Git/Gerrit with TeamForge
Git/Gerrit with TeamForgeGit/Gerrit with TeamForge
Git/Gerrit with TeamForge
 
Enterprise Git Adoption Webinar - Chinese
Enterprise Git Adoption Webinar - ChineseEnterprise Git Adoption Webinar - Chinese
Enterprise Git Adoption Webinar - Chinese
 
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
Introduction to Node-RED
Introduction to Node-REDIntroduction to Node-RED
Introduction to Node-RED
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Source Control with Git & GitHub
 Source Control with Git & GitHub Source Control with Git & GitHub
Source Control with Git & GitHub
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 

Recently uploaded

The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
kalichargn70th171
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
Karya Keeper
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
zOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL DifferenceszOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL Differences
YousufSait3
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
Peter Muessig
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
Marcin Chrost
 

Recently uploaded (20)

The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
zOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL DifferenceszOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL Differences
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
 

Git

  • 1. © 2018 NTT DATA, Inc. All rights reserved. GIT Client Name
  • 2. © 2018 NTT DATA, Inc. All rights reserved. 2 Quote by Linus Torvalds “I’m an egotistical bastard, and I name all my projects after myself. First ‘Linux’, now ‘GIT’.” -Linus Torvalds
  • 3. 3 © 2018 NTT DATA, Inc. All rights reserved. Agenda ➢ Version Control ➢ Introduction to GIT ➢ Benefits of GIT ➢ GIT Installation ➢ Basic Operation ➢ Branching and Merging
  • 4. © 2018 NTT DATA, Inc. All rights reserved. 4 Why Version Control?
  • 5. © 2018 NTT DATA, Inc. All rights reserved. 5 Sharing files and Working together
  • 6. © 2018 NTT DATA, Inc. All rights reserved. 6 Undoing Changes and Tracking Decisions. Undoing changes Tracking Decisions
  • 7. © 2018 NTT DATA, Inc. All rights reserved. 7 About Version Control
  • 8. © 2018 NTT DATA, Inc. All rights reserved. 8 Version Control Version Control Systems Local Version Control Central Version Control Distributed Version Control Keeps track on project history. Allows you to revert files to its previous state. A VCS also provide a collaboration environment. Can easily recover. Version Control Systems
  • 9. © 2018 NTT DATA, Inc. All rights reserved. 9 Version Control Version Control Systems Local Version Control Central Version Control Distributed Version Control E Error Prone. One Database. Version 1 Version 3 Version 2 Version Database File Annotations Local Version Control
  • 10. © 2018 NTT DATA, Inc. All rights reserved. 10 Version Control Version Control Systems Local Version Control Central Version Control Distributed Version Control Collaborate with other developers. Single Server. Single point of failure. Central Version Control
  • 11. © 2018 NTT DATA, Inc. All rights reserved. 11 Version Control Version Control Systems Local Version Control Central Version Control Distributed Version Control Distributed Version Control They fully clone the repository. You can collaborate with many different groups in different ways. Bring a local repository up to date with a remote repository.
  • 12. © 2018 NTT DATA, Inc. All rights reserved. 12 Introduction to GIT
  • 13. © 2018 NTT DATA, Inc. All rights reserved. 13 Background ➢The initial version of GIT came out in April 2005. ➢Incredibly fast. ➢ Very efficient with large projects. ➢Exceptional Branching.
  • 14. © 2018 NTT DATA, Inc. All rights reserved. 14 ➢Distributed Version Control. ➢Globally unique identifiers for all objects- SHA1 So What is GIT?
  • 15. © 2018 NTT DATA, Inc. All rights reserved. 15 Why GIT? Subversion
  • 16. © 2018 NTT DATA, Inc. All rights reserved. 16 Why GIT? GIT
  • 17. © 2018 NTT DATA, Inc. All rights reserved. 17 Benefits of Git
  • 18. © 2018 NTT DATA, Inc. All rights reserved. 18 Benefits of Git Synchronization Safety Simplicity Flexibility Availability Performance
  • 19. © 2018 NTT DATA, Inc. All rights reserved. 19 Pushing Changes
  • 20. © 2018 NTT DATA, Inc. All rights reserved. 20 Local Access SSH(authentication & Encryption) Git Protocol HTTP (public repositories) Transferring Changes
  • 21. © 2018 NTT DATA, Inc. All rights reserved. 21 The INDEX Working Directory Staging Area Git Directory (repository) Checkout the project Stage files Commit
  • 22. © 2018 NTT DATA, Inc. All rights reserved. 22 GIT Installation
  • 23. © 2018 NTT DATA, Inc. All rights reserved. 23 GIT Installation C:> mkdir CoolProject C:> cd CoolProject C:CoolProject > git init Initialized empty Git repository in C:/CoolProject/.git C:CoolProject > notepad README.txt C:CoolProject > git add . C:CoolProject > git commit -m 'my first commit' [master (root-commit) 7106a52] my first commit 1 file changed, 1 insertion(+) create mode 100644 README.txt
  • 24. © 2018 NTT DATA, Inc. All rights reserved. 24 Basic Operations
  • 25. © 2018 NTT DATA, Inc. All rights reserved. 25 Git Add & Git Status Git Add Git Status
  • 26. © 2018 NTT DATA, Inc. All rights reserved. 26 Git Diff & Git Commit Git Diff Git Commit
  • 27. © 2018 NTT DATA, Inc. All rights reserved. 27 Git Push & Pull
  • 28. © 2018 NTT DATA, Inc. All rights reserved. 28 Git Reset & Git RM Git Reset Git RM
  • 29. © 2018 NTT DATA, Inc. All rights reserved. 29 Git Log & Git Tag Git Log Git Tag
  • 30. © 2018 NTT DATA, Inc. All rights reserved. 30 Branching and Merging
  • 31. © 2018 NTT DATA, Inc. All rights reserved. 31 ➢Branching means that you diverge from your main line. ➢One of Gits major feature. Branching and Merging
  • 32. © 2018 NTT DATA, Inc. All rights reserved. 32 Branching and Merging(1) Git checkout (branchName) Git checkout –b branchName
  • 33. © 2018 NTT DATA, Inc. All rights reserved. 33 Branching and Merging Commands Git Merge (branchName) Git checkout –b branchName
  • 34. © 2018 NTT DATA, Inc. All rights reserved. 34 Branching and Merging -- Example Fig 3 Fig 2 Fig 1 Fig 4 Fig 5
  • 35. © 2018 NTT DATA, Inc. All rights reserved. 35 SUMMARY
  • 36. © 2018 NTT DATA, Inc. All rights reserved. 36 SUMMARY
  • 37. © 2018 NTT DATA, Inc. All rights reserved.