SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
A brief introduction to
version control systems
Tim Staley
Astronomy Group Monday Seminar
Southampton, November 2013
WWW: timstaley.co.uk
The problem No backup Manual copies Centralised VCS Distributed VCS
Aims
Help identify problem that can be
solved.
Introduce basic concepts of version
control.
Explain why various technologies
exist, and which you should choose.
The problem No backup Manual copies Centralised VCS Distributed VCS
The problem No backup Manual copies Centralised VCS Distributed VCS
When you need version
control
Complex documents, built up over
time.
Multiple collaborators (or even just
multiple machines).
Multiple versions which ‘co-evolve.’
Reproducibility (‘snapshots’).
The problem No backup Manual copies Centralised VCS Distributed VCS
Four Evolutionary Stages
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage 0: Not backing up
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage 0: Not backing up
DON’T DO THIS
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage 1: Manual copies
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage 1: Manual copies
Flaws:
Manual = fallible.
Backup: Copies of copies.
Labelling.
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage 1: Manual copies
Flaws:
Manual = fallible.
Backup: Copies of copies.
Labelling.
We need metadata - datestamps,
annotations, attribution.
And tools - make this stuff quick and
easy!
The problem No backup Manual copies Centralised VCS Distributed VCS
Aside: ‘Cloudy’ technologies
Trade off — convenience vs control.
Good for:
Small docs, frequently updated across
multiple locations (e.g. to-do list).
Basic backups of items unlikely to
evolve (photos, etc).
The problem No backup Manual copies Centralised VCS Distributed VCS
Aside: ‘Cloudy’ technologies
Problems:
Versioning is all automated - can’t
choose sensible ‘checkpoints’ to mark
out.
Collaboration is still broken, unless
you’re working on very simple docs.
The problem No backup Manual copies Centralised VCS Distributed VCS
Aside: ‘Cloudy’ technologies
Problems:
Versioning is all automated - can’t
choose sensible ‘checkpoints’ to mark
out.
Collaboration is still broken, unless
you’re working on very simple docs.
NEED MORE METADATA
The problem No backup Manual copies Centralised VCS Distributed VCS
Stage Two
The problem No backup Manual copies Centralised VCS Distributed VCS
Centralised version control
e.g.
‘Concurrent Versions System’ (CVS,
now defunct).
‘Subversion’ (SVN).
The problem No backup Manual copies Centralised VCS Distributed VCS
Basic concepts, 1
Record an annotated history of change
sets.
Trunk, branch
Parents, ancestors
The problem No backup Manual copies Centralised VCS Distributed VCS
Basic concepts, 2
Centralized ⇔ Master copy
Repository
Checkout
Commit / Revision
The problem No backup Manual copies Centralised VCS Distributed VCS
Basic concepts, 3
Merging
In simple cases, merges are automatic!
Tree-records allows us to build the new
combined version.
The problem No backup Manual copies Centralised VCS Distributed VCS
Basic concepts, 3
Manual merging: When conflicts exist,
we have the info and tools to manually
resolve them.
The problem No backup Manual copies Centralised VCS Distributed VCS
Distributed VCS
1986 – early 2000’s: Why would you
make this any more complex? This works.
The problem No backup Manual copies Centralised VCS Distributed VCS
Distributed VCS
1986 – early 2000’s: Why would you
make this any more complex? This works.
INTERWEBS
The problem No backup Manual copies Centralised VCS Distributed VCS
Distributed VCS
1986 – early 2000’s: Why would you
make this any more complex? This works.
INTERWEBS
(See e.g. visualised history of Python,
https://www.youtube.com/watch?v=
cNBtDstOTmA)
The problem No backup Manual copies Centralised VCS Distributed VCS
Centralised doesn’t scale
Many collaborators.
Cannot check-in half-finished work to
master.
Cannot keep track of a branch for
every collaborator.
The problem No backup Manual copies Centralised VCS Distributed VCS
Centralised doesn’t scale
Many collaborators.
Cannot check-in half-finished work to
master.
Cannot keep track of a branch for
every collaborator.
Resort back to hybrid of central copy
under version control, with many
local, manual backups for
intermediate work.
The problem No backup Manual copies Centralised VCS Distributed VCS
The distributed model
Stage 3: Distribute!
Everyone has their own mirror, or
clone of the repository.
Changes are distributed via pushes
and pulls.
The problem No backup Manual copies Centralised VCS Distributed VCS
Distribute!
Benefits for you:
More flexible. Allows different
workflows and collaborative behaviour
etc.
Can commit offline, sync later.
Talk to me later if you want the details.
The problem No backup Manual copies Centralised VCS Distributed VCS
So which should I use?
The problem No backup Manual copies Centralised VCS Distributed VCS
So which should I use?
At this stage, git and mercurial are
functionally equivalent — but git has won
the majority mindshare, therefore: better
support, better chance of collaborators
using same system, etc.
The problem No backup Manual copies Centralised VCS Distributed VCS
Summary
Version control helps with:
Backups
Reproducibility
Comparing arbitrary historical versions.
Maintaining multiple live versions.
Lots of free services and material
online to help you out.
Bit of a learning curve at first - but
payoff is large in long-run. (And now
you have a headstart!)
The problem No backup Manual copies Centralised VCS Distributed VCS
Advanced Reading
To start, google ‘git intro’, etc. Then. . .
Git for Computer Scientists
http://eagain.net/articles/
git-for-computer-scientists/
Understanding Git Conceptually
http://www.sbf5.com/~cduan/
technical/git/
Understanding the Git Workflow
https://sandofsky.com/blog/
git-workflow.html

Contenu connexe

Tendances

Tendances (20)

GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
Git e GitHub
Git e GitHubGit e GitHub
Git e GitHub
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Version control system and Git
Version control system and GitVersion control system and Git
Version control system and Git
 
Version control system
Version control systemVersion control system
Version control system
 
Version control
Version controlVersion control
Version control
 
Git flow Introduction
Git flow IntroductionGit flow Introduction
Git flow Introduction
 
"DevOps > CI+CD "
"DevOps > CI+CD ""DevOps > CI+CD "
"DevOps > CI+CD "
 
git and github
git and githubgit and github
git and github
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
Introduction to Git / Github
Introduction to Git / GithubIntroduction to Git / Github
Introduction to Git / Github
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git basic
Git basicGit basic
Git basic
 
Introduction to CICD
Introduction to CICDIntroduction to CICD
Introduction to CICD
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Version Control
Version ControlVersion Control
Version Control
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 

En vedette

What is version control software and why do you need it?
What is version control software and why do you need it?What is version control software and why do you need it?
What is version control software and why do you need it?Leonid Mamchenkov
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to gitJoel Krebs
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVNPHPBelgium
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideRohit Arora
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGeoff Hoffman
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners HubSpot
 
Version Control Systems - ArabNet Beirut 2014 - Dani Arnaout
Version Control Systems - ArabNet Beirut 2014 - Dani ArnaoutVersion Control Systems - ArabNet Beirut 2014 - Dani Arnaout
Version Control Systems - ArabNet Beirut 2014 - Dani ArnaoutDani Arnaout
 
An introduction to Version Control Systems
An introduction to Version Control SystemsAn introduction to Version Control Systems
An introduction to Version Control SystemsJon Warbrick
 
Intro To Version Control
Intro To Version ControlIntro To Version Control
Intro To Version Controlceardach
 
Introduction to Version Control System for Windows
Introduction to Version Control System for WindowsIntroduction to Version Control System for Windows
Introduction to Version Control System for WindowsPeter Chang
 
Distributed Version Control (DVCS) With Mercurial
Distributed Version Control (DVCS) With MercurialDistributed Version Control (DVCS) With Mercurial
Distributed Version Control (DVCS) With MercurialTed Naleid
 
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010Atlassian
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous IntegrationGeff Henderson Chang
 
01 - Introduction to Version Control
01 - Introduction to Version Control01 - Introduction to Version Control
01 - Introduction to Version ControlSergii Shmarkatiuk
 

En vedette (20)

What is version control software and why do you need it?
What is version control software and why do you need it?What is version control software and why do you need it?
What is version control software and why do you need it?
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
 
Git in 5 Minutes
Git in 5 MinutesGit in 5 Minutes
Git in 5 Minutes
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVN
 
Git Presentation
Git PresentationGit Presentation
Git Presentation
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Version Control Systems - ArabNet Beirut 2014 - Dani Arnaout
Version Control Systems - ArabNet Beirut 2014 - Dani ArnaoutVersion Control Systems - ArabNet Beirut 2014 - Dani Arnaout
Version Control Systems - ArabNet Beirut 2014 - Dani Arnaout
 
An introduction to Version Control Systems
An introduction to Version Control SystemsAn introduction to Version Control Systems
An introduction to Version Control Systems
 
Intro To Version Control
Intro To Version ControlIntro To Version Control
Intro To Version Control
 
Introduction to Version Control System for Windows
Introduction to Version Control System for WindowsIntroduction to Version Control System for Windows
Introduction to Version Control System for Windows
 
Distributed Version Control (DVCS) With Mercurial
Distributed Version Control (DVCS) With MercurialDistributed Version Control (DVCS) With Mercurial
Distributed Version Control (DVCS) With Mercurial
 
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010
Distributed Version Control Systems in the Enterprise - Atlassian Summit 2010
 
Versioning for Developers
Versioning for DevelopersVersioning for Developers
Versioning for Developers
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous Integration
 
01 - Introduction to Version Control
01 - Introduction to Version Control01 - Introduction to Version Control
01 - Introduction to Version Control
 
DataHub
DataHubDataHub
DataHub
 

Similaire à Introduction to Version Control Systems

Top Hyper-V Implementation Issues
Top Hyper-V Implementation IssuesTop Hyper-V Implementation Issues
Top Hyper-V Implementation IssuesAidan Finn
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...Michael Pirker
 
Version Control System
Version Control SystemVersion Control System
Version Control SystemTechAhead
 
JavaEdge 2008: Your next version control system
JavaEdge 2008: Your next version control systemJavaEdge 2008: Your next version control system
JavaEdge 2008: Your next version control systemGilad Garon
 
De-centralised Version Control with Bazaar
De-centralised Version Control with BazaarDe-centralised Version Control with Bazaar
De-centralised Version Control with BazaarStuart Colville
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best PracticesAshraf Fouad
 
Embracing Distributed Version Control
Embracing Distributed Version ControlEmbracing Distributed Version Control
Embracing Distributed Version ControlNowell Strite
 
Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Carter Shanklin
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 featuresAngel Ruiz
 

Similaire à Introduction to Version Control Systems (20)

Top Hyper-V Implementation Issues
Top Hyper-V Implementation IssuesTop Hyper-V Implementation Issues
Top Hyper-V Implementation Issues
 
Cvs
CvsCvs
Cvs
 
Implementing dr w. hyper v clustering
Implementing dr w. hyper v clusteringImplementing dr w. hyper v clustering
Implementing dr w. hyper v clustering
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
 
ESXpert strategies VMware vSphere
ESXpert strategies VMware vSphereESXpert strategies VMware vSphere
ESXpert strategies VMware vSphere
 
Version Control System
Version Control SystemVersion Control System
Version Control System
 
JavaEdge 2008: Your next version control system
JavaEdge 2008: Your next version control systemJavaEdge 2008: Your next version control system
JavaEdge 2008: Your next version control system
 
De-centralised Version Control with Bazaar
De-centralised Version Control with BazaarDe-centralised Version Control with Bazaar
De-centralised Version Control with Bazaar
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
 
Hyper v r2 deep dive
Hyper v r2 deep diveHyper v r2 deep dive
Hyper v r2 deep dive
 
Embracing Distributed Version Control
Embracing Distributed Version ControlEmbracing Distributed Version Control
Embracing Distributed Version Control
 
Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 features
 
Wise09
Wise09Wise09
Wise09
 
Maven 3.0 at Øredev
Maven 3.0 at ØredevMaven 3.0 at Øredev
Maven 3.0 at Øredev
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Version Controlling
Version ControllingVersion Controlling
Version Controlling
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Git branching model
Git branching modelGit branching model
Git branching model
 

Plus de Tim Staley

Which transient when? - A utility function for transient follow-up scheduling
Which transient when? - A utility function for transient follow-up schedulingWhich transient when? - A utility function for transient follow-up scheduling
Which transient when? - A utility function for transient follow-up schedulingTim Staley
 
How to build a TraP: An image-plane transient-discovery tool
How to build a TraP: An image-plane transient-discovery toolHow to build a TraP: An image-plane transient-discovery tool
How to build a TraP: An image-plane transient-discovery toolTim Staley
 
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutes
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutesFrom gamma-ray to radio: Multi-wavelength follow-up in the first five minutes
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutesTim Staley
 
Tunable algorithms for transient follow-up
Tunable algorithms for transient follow-upTunable algorithms for transient follow-up
Tunable algorithms for transient follow-upTim Staley
 
Training your astronomy robots to work as a team
Training your astronomy robots to work as a teamTraining your astronomy robots to work as a team
Training your astronomy robots to work as a teamTim Staley
 
A user's guide to lucky imaging
A user's guide to lucky imagingA user's guide to lucky imaging
A user's guide to lucky imagingTim Staley
 
Fast radio follow-up
Fast radio follow-upFast radio follow-up
Fast radio follow-upTim Staley
 
Lucky imaging - Life in the visible after HST
Lucky imaging - Life in the visible after HSTLucky imaging - Life in the visible after HST
Lucky imaging - Life in the visible after HSTTim Staley
 
Fast radio follow-up of GRBs
Fast radio follow-up of GRBsFast radio follow-up of GRBs
Fast radio follow-up of GRBsTim Staley
 

Plus de Tim Staley (9)

Which transient when? - A utility function for transient follow-up scheduling
Which transient when? - A utility function for transient follow-up schedulingWhich transient when? - A utility function for transient follow-up scheduling
Which transient when? - A utility function for transient follow-up scheduling
 
How to build a TraP: An image-plane transient-discovery tool
How to build a TraP: An image-plane transient-discovery toolHow to build a TraP: An image-plane transient-discovery tool
How to build a TraP: An image-plane transient-discovery tool
 
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutes
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutesFrom gamma-ray to radio: Multi-wavelength follow-up in the first five minutes
From gamma-ray to radio: Multi-wavelength follow-up in the first five minutes
 
Tunable algorithms for transient follow-up
Tunable algorithms for transient follow-upTunable algorithms for transient follow-up
Tunable algorithms for transient follow-up
 
Training your astronomy robots to work as a team
Training your astronomy robots to work as a teamTraining your astronomy robots to work as a team
Training your astronomy robots to work as a team
 
A user's guide to lucky imaging
A user's guide to lucky imagingA user's guide to lucky imaging
A user's guide to lucky imaging
 
Fast radio follow-up
Fast radio follow-upFast radio follow-up
Fast radio follow-up
 
Lucky imaging - Life in the visible after HST
Lucky imaging - Life in the visible after HSTLucky imaging - Life in the visible after HST
Lucky imaging - Life in the visible after HST
 
Fast radio follow-up of GRBs
Fast radio follow-up of GRBsFast radio follow-up of GRBs
Fast radio follow-up of GRBs
 

Dernier

Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
cpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptcpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptrcbcrtm
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 

Dernier (20)

Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
cpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptcpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.ppt
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 

Introduction to Version Control Systems

  • 1. A brief introduction to version control systems Tim Staley Astronomy Group Monday Seminar Southampton, November 2013 WWW: timstaley.co.uk
  • 2. The problem No backup Manual copies Centralised VCS Distributed VCS Aims Help identify problem that can be solved. Introduce basic concepts of version control. Explain why various technologies exist, and which you should choose.
  • 3. The problem No backup Manual copies Centralised VCS Distributed VCS
  • 4. The problem No backup Manual copies Centralised VCS Distributed VCS When you need version control Complex documents, built up over time. Multiple collaborators (or even just multiple machines). Multiple versions which ‘co-evolve.’ Reproducibility (‘snapshots’).
  • 5. The problem No backup Manual copies Centralised VCS Distributed VCS Four Evolutionary Stages
  • 6. The problem No backup Manual copies Centralised VCS Distributed VCS Stage 0: Not backing up
  • 7. The problem No backup Manual copies Centralised VCS Distributed VCS Stage 0: Not backing up DON’T DO THIS
  • 8. The problem No backup Manual copies Centralised VCS Distributed VCS Stage 1: Manual copies
  • 9. The problem No backup Manual copies Centralised VCS Distributed VCS Stage 1: Manual copies Flaws: Manual = fallible. Backup: Copies of copies. Labelling.
  • 10. The problem No backup Manual copies Centralised VCS Distributed VCS Stage 1: Manual copies Flaws: Manual = fallible. Backup: Copies of copies. Labelling. We need metadata - datestamps, annotations, attribution. And tools - make this stuff quick and easy!
  • 11. The problem No backup Manual copies Centralised VCS Distributed VCS Aside: ‘Cloudy’ technologies Trade off — convenience vs control. Good for: Small docs, frequently updated across multiple locations (e.g. to-do list). Basic backups of items unlikely to evolve (photos, etc).
  • 12. The problem No backup Manual copies Centralised VCS Distributed VCS Aside: ‘Cloudy’ technologies Problems: Versioning is all automated - can’t choose sensible ‘checkpoints’ to mark out. Collaboration is still broken, unless you’re working on very simple docs.
  • 13. The problem No backup Manual copies Centralised VCS Distributed VCS Aside: ‘Cloudy’ technologies Problems: Versioning is all automated - can’t choose sensible ‘checkpoints’ to mark out. Collaboration is still broken, unless you’re working on very simple docs. NEED MORE METADATA
  • 14. The problem No backup Manual copies Centralised VCS Distributed VCS Stage Two
  • 15. The problem No backup Manual copies Centralised VCS Distributed VCS Centralised version control e.g. ‘Concurrent Versions System’ (CVS, now defunct). ‘Subversion’ (SVN).
  • 16. The problem No backup Manual copies Centralised VCS Distributed VCS Basic concepts, 1 Record an annotated history of change sets. Trunk, branch Parents, ancestors
  • 17. The problem No backup Manual copies Centralised VCS Distributed VCS Basic concepts, 2 Centralized ⇔ Master copy Repository Checkout Commit / Revision
  • 18. The problem No backup Manual copies Centralised VCS Distributed VCS Basic concepts, 3 Merging In simple cases, merges are automatic! Tree-records allows us to build the new combined version.
  • 19. The problem No backup Manual copies Centralised VCS Distributed VCS Basic concepts, 3 Manual merging: When conflicts exist, we have the info and tools to manually resolve them.
  • 20. The problem No backup Manual copies Centralised VCS Distributed VCS Distributed VCS 1986 – early 2000’s: Why would you make this any more complex? This works.
  • 21. The problem No backup Manual copies Centralised VCS Distributed VCS Distributed VCS 1986 – early 2000’s: Why would you make this any more complex? This works. INTERWEBS
  • 22. The problem No backup Manual copies Centralised VCS Distributed VCS Distributed VCS 1986 – early 2000’s: Why would you make this any more complex? This works. INTERWEBS (See e.g. visualised history of Python, https://www.youtube.com/watch?v= cNBtDstOTmA)
  • 23. The problem No backup Manual copies Centralised VCS Distributed VCS Centralised doesn’t scale Many collaborators. Cannot check-in half-finished work to master. Cannot keep track of a branch for every collaborator.
  • 24. The problem No backup Manual copies Centralised VCS Distributed VCS Centralised doesn’t scale Many collaborators. Cannot check-in half-finished work to master. Cannot keep track of a branch for every collaborator. Resort back to hybrid of central copy under version control, with many local, manual backups for intermediate work.
  • 25. The problem No backup Manual copies Centralised VCS Distributed VCS The distributed model Stage 3: Distribute! Everyone has their own mirror, or clone of the repository. Changes are distributed via pushes and pulls.
  • 26. The problem No backup Manual copies Centralised VCS Distributed VCS Distribute! Benefits for you: More flexible. Allows different workflows and collaborative behaviour etc. Can commit offline, sync later. Talk to me later if you want the details.
  • 27. The problem No backup Manual copies Centralised VCS Distributed VCS So which should I use?
  • 28. The problem No backup Manual copies Centralised VCS Distributed VCS So which should I use? At this stage, git and mercurial are functionally equivalent — but git has won the majority mindshare, therefore: better support, better chance of collaborators using same system, etc.
  • 29. The problem No backup Manual copies Centralised VCS Distributed VCS Summary Version control helps with: Backups Reproducibility Comparing arbitrary historical versions. Maintaining multiple live versions. Lots of free services and material online to help you out. Bit of a learning curve at first - but payoff is large in long-run. (And now you have a headstart!)
  • 30. The problem No backup Manual copies Centralised VCS Distributed VCS Advanced Reading To start, google ‘git intro’, etc. Then. . . Git for Computer Scientists http://eagain.net/articles/ git-for-computer-scientists/ Understanding Git Conceptually http://www.sbf5.com/~cduan/ technical/git/ Understanding the Git Workflow https://sandofsky.com/blog/ git-workflow.html