SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
Git - Basics
â—Ź Management of changes to collection of Information
â—Ź Identified by revision number
â—Ź Revisions can be compared restored and merged
â—Ź Coordinating Teams
Version Control Software
Centralised VCS vs Distributed VCS
â—Ź One true source code
â—Ź Commit and Checkout from a central location
â—Ź No need to keep many copies of single file in hard disk
â—Ź Eg:- SVN, OpenCVS and Perforce
â—Ź Difference in workflow and performance
â—Ź Typical CVCS Workflow
â—‹ Pull down any changes other people have made from the central
server
â—‹ Make your changes, and make sure they work properly
â—‹ Commit your changes to the central server, so other programmers
can see them
Centralised VCSs
â—Ź Every repository is good as any other
â—Ź Do not necessarily rely on a central server
● Developer “clones” a copy of a repository and has the full history of the
project on their own hard drive
● “Pulling” and “Pushing”
â—Ź Act of cloning
Distributed VCSs
â—Ź Actions other than pushing and pulling to repositories are extremely fast
â—Ź Committing new changesets can be done locally
â—Ź Work and commit changes from anywhere without Internet, push them
all to git server at once
â—Ź Share with one or two people to get feedback and then share with all
Advantages of DVCS
â—Ź Space needed to store all version of large binary files can accumulate
quickly
â—Ź Long history projects can take an impractical amount of time and disk
space
Disadvantages of DVCS
â—Ź Location in which data is stored and managed
â—‹ Central location
â—‹ Distributed location
Repository
â—Ź Centralized VCS
â—‹ List of file based changes
â—Ź Distributed VCS
â—‹ Set of snapshots of a miniature filesystem
Data Storage in a repository
â—Ź Difference between same file in different versions of a VCS
â—Ź Eg :-
What is a Diff?
â—Ź Distributed revision control system
â—Ź Designed and developed by Linus Torvalds
â—Ź A Git working repository is a fully-fledged repository
â—Ź Distributed under GNU General Public License version 2
Git
â—Ź Development began in April 2005
â—Ź BitKeeper - A proprietary source control management system
â—Ź Necessity of an distributed open source SCM
â—Ź Other design Criterias
â—‹ Take Concurrent Versions System (CVS) as an example of what not to
do; if in doubt, make the exact opposite decision
â—‹ Support a distributed, BitKeeper-like workflow
â—‹ Very strong safeguards against corruption, either accidental or
malicious
● “The unpleasant person”
Evolution of Git
Linus Torvalds Junio Hamano
â—Ź Bazaar
â—Ź Mercurial
â—Ź Monotone
Other softwares like Git
â—Ź Command-line method
â—‹ git init
â—‹ git init <reponame>
â—‹ git --bare init
Make your first git repository
â—Ź SVN Checkout and Git Clone
â—Ź SVN Update and Git Pull
â—Ź SVN Commit and Git commit & push
Confusions of a Subversion user
â—Ź git add .
â—Ź git commit
â—Ź git push
Your first commit
â—Ź Tell Git who you are
â—‹ git config --global user.name "Sam Smith"
â—‹ git config --global user.email sam@example.com
â—Ź Create a new local repository
â—‹ git init
â—Ź Checkout a repository
â—‹ git clone /path/to/repository
â—‹ git clone username@host:/path/to/repository
â—Ź Add files
â—‹ git add <filename>
â—‹ git add .
Git common commands
â—Ź Commit
○ git commit -m “commit message”
â—‹ git commit -a
â—Ź Push
â—‹ git push origin master
â—Ź Status
â—‹ git status
â—Ź Connect to a remote repository
â—‹ git remote add origin <server>
â—‹ git remote -v
Git common commands (Contd.)
â—Ź Branches
â—‹ git checkout -b <branchname>
â—‹ git checkout <branchname>
â—‹ git branch
â—‹ git branch -d <branchname>
â—‹ git push origin <branchname>
â—‹ git push --all origin
â—‹ git push origin :<branchname>
Git common commands (Contd.)
â—Ź Update from the remote repository
â—‹ git pull
â—‹ git merge <branchname>
â—‹ git diff
â—‹ git diff --base <filename>
â—‹ git diff <sourcebranch> <targetbranch>
â—‹ git add <filename>
â—Ź Tags
â—‹ git tag 1.0.0 <commitID>
â—‹ git log
â—‹ git push --tags origin
Git common commands (Contd.)
â—Ź Undo local changes
â—‹ git checkout -- <filename>
â—‹ git fetch origin
â—‹ git reset --hard origin/master
â—Ź Search
â—‹ git grep "foo()"
Git common commands (Contd.)
â—Ź Creating a new repository
â—Ź Cloning a remote repository
Git for subversion users
â—Ź Inspecting history
â—Ź Committing local changes
â—‹ Inspect your local changes
Git for subversion users (Contd.)
â—Ź Committing local changes
â—‹ add/remove changed files
â—‹ commit your changes
Git for subversion users (Contd.)
â—Ź Sharing & collaborating
Git for subversion users (Contd.)
Thank You
&
Next Presentation will be on
unit testing

Weitere ähnliche Inhalte

Was ist angesagt?

GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable"FENG "GEORGE"" YU
 
Git real slides
Git real slidesGit real slides
Git real slidesLucas Couto
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To GitArnaud Seilles
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notesglen_a_smith
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHubJames Gray
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git IntroYoad Snapir
 
Git training v10
Git training v10Git training v10
Git training v10Skander Hamza
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitE Carter
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitLukas Fittl
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git RightSven Peters
 
Git and git flow
Git and git flowGit and git flow
Git and git flowFran GarcĂ­a
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
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
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagramsDilum Navanjana
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners Anurag Upadhaya
 

Was ist angesagt? (20)

GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git basics
Git basicsGit basics
Git basics
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Learning git
Learning gitLearning git
Learning git
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Git training v10
Git training v10Git training v10
Git training v10
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git Right
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
 
Git
GitGit
Git
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
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
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 

Andere mochten auch

Score your Goals, Leave Password Management to us!
Score your Goals, Leave Password Management to us!Score your Goals, Leave Password Management to us!
Score your Goals, Leave Password Management to us!ILANTUS Technologies
 
Presentation - Programming a Heterogeneous Computing Cluster
Presentation - Programming a Heterogeneous Computing ClusterPresentation - Programming a Heterogeneous Computing Cluster
Presentation - Programming a Heterogeneous Computing ClusterAashrith Setty
 
One night at the call center by chetan bhagat
One night at the call center by chetan bhagatOne night at the call center by chetan bhagat
One night at the call center by chetan bhagatCVR college of Engineering
 
Santosh Das
Santosh DasSantosh Das
Santosh DasSantosh Das
 
Certificate Of Participation
Certificate Of ParticipationCertificate Of Participation
Certificate Of ParticipationAnant Pradhan
 
Usa today api
Usa today apiUsa today api
Usa today apiIgor Birman
 
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag   Hoe Aia Software scrum ontmoette - GoYello Kennismiddag
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag Jeroen Huinink
 
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017DreamOrbit Softech Pvt Ltd.
 
Presentation EOI - Apps & Tech 2.0
Presentation EOI - Apps & Tech 2.0Presentation EOI - Apps & Tech 2.0
Presentation EOI - Apps & Tech 2.0Jaume Jane Serradilla
 
Oracle switch over_back
Oracle switch over_backOracle switch over_back
Oracle switch over_backAmardeep Jassal
 
A research report on the establishment of private independent blood banks in ...
A research report on the establishment of private independent blood banks in ...A research report on the establishment of private independent blood banks in ...
A research report on the establishment of private independent blood banks in ...Rijo Stephen Cletus
 

Andere mochten auch (20)

Score your Goals, Leave Password Management to us!
Score your Goals, Leave Password Management to us!Score your Goals, Leave Password Management to us!
Score your Goals, Leave Password Management to us!
 
Presentation - Programming a Heterogeneous Computing Cluster
Presentation - Programming a Heterogeneous Computing ClusterPresentation - Programming a Heterogeneous Computing Cluster
Presentation - Programming a Heterogeneous Computing Cluster
 
Tejashree_cv
Tejashree_cvTejashree_cv
Tejashree_cv
 
One night at the call center by chetan bhagat
One night at the call center by chetan bhagatOne night at the call center by chetan bhagat
One night at the call center by chetan bhagat
 
Santosh Das
Santosh DasSantosh Das
Santosh Das
 
Certificate Of Participation
Certificate Of ParticipationCertificate Of Participation
Certificate Of Participation
 
Annualreport07 08
Annualreport07 08Annualreport07 08
Annualreport07 08
 
Usa today api
Usa today apiUsa today api
Usa today api
 
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag   Hoe Aia Software scrum ontmoette - GoYello Kennismiddag
Hoe Aia Software scrum ontmoette - GoYello Kennismiddag
 
Kashave_Kumar
Kashave_KumarKashave_Kumar
Kashave_Kumar
 
Genesis
GenesisGenesis
Genesis
 
Pacmp
PacmpPacmp
Pacmp
 
CS1308 - 02/08/10
CS1308 - 02/08/10CS1308 - 02/08/10
CS1308 - 02/08/10
 
Assignement
AssignementAssignement
Assignement
 
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017
WHICH TECHNOLOGY WILL BE IN FOCUS FOR MOBILE APP DEVELOPMENT IN 2017
 
Presentation EOI - Apps & Tech 2.0
Presentation EOI - Apps & Tech 2.0Presentation EOI - Apps & Tech 2.0
Presentation EOI - Apps & Tech 2.0
 
Oracle switch over_back
Oracle switch over_backOracle switch over_back
Oracle switch over_back
 
School
SchoolSchool
School
 
A research report on the establishment of private independent blood banks in ...
A research report on the establishment of private independent blood banks in ...A research report on the establishment of private independent blood banks in ...
A research report on the establishment of private independent blood banks in ...
 
TLC
TLCTLC
TLC
 

Ă„hnlich wie Version Control History and Git Basics

Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumAbhijitNarayan2
 
introduction in version control system
introduction in version control systemintroduction in version control system
introduction in version control systemBiga Gaber
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control SystemMd. Mujahid Islam
 
GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17siva ram
 
GIT In Detail
GIT In DetailGIT In Detail
GIT In DetailHaitham Raik
 
Beginner walkthrough to git and github
Beginner walkthrough to git and githubBeginner walkthrough to git and github
Beginner walkthrough to git and githubMahmoud Said
 
Crash course in git and github
Crash course in git and githubCrash course in git and github
Crash course in git and githubMithun Shanbhag
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHubPriya Nayak
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHubVikram SV
 
Git.pptx
Git.pptxGit.pptx
Git.pptxPalashIMS
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitAmit Mathur
 
Version control and GIT Primer
Version control and GIT PrimerVersion control and GIT Primer
Version control and GIT Primersaadulde
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptxtapanvyas11
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitYan Vugenfirer
 

Ă„hnlich wie Version Control History and Git Basics (20)

Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Git presentation
Git presentationGit presentation
Git presentation
 
introduction in version control system
introduction in version control systemintroduction in version control system
introduction in version control system
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17
 
Git
GitGit
Git
 
Git.odp 0
Git.odp 0Git.odp 0
Git.odp 0
 
GIT In Detail
GIT In DetailGIT In Detail
GIT In Detail
 
Beginner walkthrough to git and github
Beginner walkthrough to git and githubBeginner walkthrough to git and github
Beginner walkthrough to git and github
 
GIT
GITGIT
GIT
 
Crash course in git and github
Crash course in git and githubCrash course in git and github
Crash course in git and github
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
GIT INTRODUCTION
GIT INTRODUCTIONGIT INTRODUCTION
GIT INTRODUCTION
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Git.pptx
Git.pptxGit.pptx
Git.pptx
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Version control and GIT Primer
Version control and GIT PrimerVersion control and GIT Primer
Version control and GIT Primer
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 

KĂĽrzlich hochgeladen

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

KĂĽrzlich hochgeladen (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Version Control History and Git Basics

  • 2. â—Ź Management of changes to collection of Information â—Ź Identified by revision number â—Ź Revisions can be compared restored and merged â—Ź Coordinating Teams Version Control Software
  • 3. Centralised VCS vs Distributed VCS
  • 4. â—Ź One true source code â—Ź Commit and Checkout from a central location â—Ź No need to keep many copies of single file in hard disk â—Ź Eg:- SVN, OpenCVS and Perforce â—Ź Difference in workflow and performance â—Ź Typical CVCS Workflow â—‹ Pull down any changes other people have made from the central server â—‹ Make your changes, and make sure they work properly â—‹ Commit your changes to the central server, so other programmers can see them Centralised VCSs
  • 5. â—Ź Every repository is good as any other â—Ź Do not necessarily rely on a central server â—Ź Developer “clones” a copy of a repository and has the full history of the project on their own hard drive â—Ź “Pulling” and “Pushing” â—Ź Act of cloning Distributed VCSs
  • 6. â—Ź Actions other than pushing and pulling to repositories are extremely fast â—Ź Committing new changesets can be done locally â—Ź Work and commit changes from anywhere without Internet, push them all to git server at once â—Ź Share with one or two people to get feedback and then share with all Advantages of DVCS
  • 7. â—Ź Space needed to store all version of large binary files can accumulate quickly â—Ź Long history projects can take an impractical amount of time and disk space Disadvantages of DVCS
  • 8. â—Ź Location in which data is stored and managed â—‹ Central location â—‹ Distributed location Repository
  • 9. â—Ź Centralized VCS â—‹ List of file based changes â—Ź Distributed VCS â—‹ Set of snapshots of a miniature filesystem Data Storage in a repository
  • 10. â—Ź Difference between same file in different versions of a VCS â—Ź Eg :- What is a Diff?
  • 11. â—Ź Distributed revision control system â—Ź Designed and developed by Linus Torvalds â—Ź A Git working repository is a fully-fledged repository â—Ź Distributed under GNU General Public License version 2 Git
  • 12. â—Ź Development began in April 2005 â—Ź BitKeeper - A proprietary source control management system â—Ź Necessity of an distributed open source SCM â—Ź Other design Criterias â—‹ Take Concurrent Versions System (CVS) as an example of what not to do; if in doubt, make the exact opposite decision â—‹ Support a distributed, BitKeeper-like workflow â—‹ Very strong safeguards against corruption, either accidental or malicious â—Ź “The unpleasant person” Evolution of Git
  • 14. â—Ź Bazaar â—Ź Mercurial â—Ź Monotone Other softwares like Git
  • 15. â—Ź Command-line method â—‹ git init â—‹ git init <reponame> â—‹ git --bare init Make your first git repository
  • 16. â—Ź SVN Checkout and Git Clone â—Ź SVN Update and Git Pull â—Ź SVN Commit and Git commit & push Confusions of a Subversion user
  • 17. â—Ź git add . â—Ź git commit â—Ź git push Your first commit
  • 18. â—Ź Tell Git who you are â—‹ git config --global user.name "Sam Smith" â—‹ git config --global user.email sam@example.com â—Ź Create a new local repository â—‹ git init â—Ź Checkout a repository â—‹ git clone /path/to/repository â—‹ git clone username@host:/path/to/repository â—Ź Add files â—‹ git add <filename> â—‹ git add . Git common commands
  • 19. â—Ź Commit â—‹ git commit -m “commit message” â—‹ git commit -a â—Ź Push â—‹ git push origin master â—Ź Status â—‹ git status â—Ź Connect to a remote repository â—‹ git remote add origin <server> â—‹ git remote -v Git common commands (Contd.)
  • 20. â—Ź Branches â—‹ git checkout -b <branchname> â—‹ git checkout <branchname> â—‹ git branch â—‹ git branch -d <branchname> â—‹ git push origin <branchname> â—‹ git push --all origin â—‹ git push origin :<branchname> Git common commands (Contd.)
  • 21. â—Ź Update from the remote repository â—‹ git pull â—‹ git merge <branchname> â—‹ git diff â—‹ git diff --base <filename> â—‹ git diff <sourcebranch> <targetbranch> â—‹ git add <filename> â—Ź Tags â—‹ git tag 1.0.0 <commitID> â—‹ git log â—‹ git push --tags origin Git common commands (Contd.)
  • 22. â—Ź Undo local changes â—‹ git checkout -- <filename> â—‹ git fetch origin â—‹ git reset --hard origin/master â—Ź Search â—‹ git grep "foo()" Git common commands (Contd.)
  • 23. â—Ź Creating a new repository â—Ź Cloning a remote repository Git for subversion users
  • 24. â—Ź Inspecting history â—Ź Committing local changes â—‹ Inspect your local changes Git for subversion users (Contd.)
  • 25. â—Ź Committing local changes â—‹ add/remove changed files â—‹ commit your changes Git for subversion users (Contd.)
  • 26. â—Ź Sharing & collaborating Git for subversion users (Contd.)
  • 27.
  • 28. Thank You & Next Presentation will be on unit testing