SlideShare a Scribd company logo
Version Control & GIT
Floating lesson
Yoram Michaeli 21-July-2016
Source-it
•Present what is version control and why
we use it
•Present what is GIT, its basic concept and
what must we know about it in order to
use it
•Present basic GIT flows in practice
Presentation Goals
Source-it
Version Control
Source-it
What is version control?
• Version Control (VC) also known as source control or
revision control
• Version control – management of changes in
documents, computer programs or other collection of
information files
• Revision control is any kind of practice that tracks and
provides control over changes to source code
• Version Control Systems (VCS) – GIT, SVN, ClearCase,
CVS, Perforce
Source-it
Why do we need version control?
• Collaboration
• Work with different versions of the code
• Control the different versions of the software
• Meet legal, security and management requirements
• Track changes of the code and configuration files
Source-it
GIT
Source-it
What is GIT?
• GIT – Free of charge Distributed Version Control System
(DVCS)
• GIT has been created in 2005 by Linus Torvalds for the
development of the Linux Kernel
• Every GIT directory on every computer is a full
repository with complete history and full version-
tracking capabilities
• Every GIT directory is independent of network access
or central server
Source-it
GIT basics
Source-it
GIT basic terms
Synchronization actions (network-related actions)
• Clone – making a copy of a remote repository onto a local directory
• Fetch – synchronize the local repository from the remote repository
• Pull – update the local working directory for the current branch from the remote matching
branch
• Push – update the remote branch with the latest version of the current branch and/or tags on
the local repository
Local work terms (locally without network)
• Add – stage files to be tracked by GIT
• Commit – save local changes into the local repository
• Branch – a repository version pointing to some path in the repository structure
• Checkout – update the local working directory to a certain version of the repository
• Merge – sync. a certain branch of the local repository from another branch or tags or version
Source-it
GIT in practice
Source-it
Common GIT workflows
• Clone a repository
• Synchronize the local repository
• Commit a change
• Create a new branch
• Switch between branches
• Merge from branch to branch
• Pull request
Source-it
Clone a repository
From command line:
git clone git@github.com:yorammi/source-it.git
Source-it
Clone a repository
In Eclipse:
Source-it
Synchronize the local repository
From command line:
git fetch origin
git pull origin master
git push origin master
Source-it
Commit a change
From command line:
git add –all
git commit –m ”source-it change”
Source-it
Create a new branch
From command line:
git branch source-it
git checkout source-it
Which is equivalent to:
git checkout –b source-it
Source-it
Switch between branches
From command line:
git checkout master
git checkout source-it
Source-it
Merge from branch to branch
From command line:
git checkout master
git merge source-it
Source-it
Pull request
• Each GIT hosting service may handle pull request differently
• Pull requests are best for code-review and collaboration
Source-it
What’s next?
Source-it

More Related Content

POTX
Hello DevOps World
PDF
Single Source of Truth in a Distributed World by Sven Erik Knop
PDF
Embracing Git and Distributed Teams
PPTX
PDF
2016 CLA Summit - Branching Workflows for Team Development
PPTX
GIT INTRODUCTION
PPTX
Version control system
PPT
Introduction to Version Control and Configuration Management
Hello DevOps World
Single Source of Truth in a Distributed World by Sven Erik Knop
Embracing Git and Distributed Teams
2016 CLA Summit - Branching Workflows for Team Development
GIT INTRODUCTION
Version control system
Introduction to Version Control and Configuration Management

What's hot (18)

PPTX
Evolution of GIT - Linus Torvald's magic
PDF
Introduction to Versioning (VCS) for Developers
PPTX
2016 NIWeek - TI’s Continuous Delivery Machine for Accelerated Application De...
PDF
Streams in Parallel Development by Sven Erik Knop
PDF
Version Control in TFS 2013: GIT - 2013 Application Lifecycle Management Event
PPTX
The eBay-Way Meetup IL - CI/CD with Microservices
PDF
Presentation on GIT at Eminence
PDF
Configuration management your infrastructure with open suse
PPTX
Understanding GIT / Bitbucket training
PDF
The State of Security Enhanced Linux - FOSS.IN/2007
PPT
Source Code management System
ODP
Case management applications with BPM
ODP
What's new in JBoss BPM Suite 6.1
ODP
Building responsive and flexible applications with BPM
PDF
Introduction to Git
ODP
Building advanced case-driven applications
PDF
Flowable What´s coming next?
PPTX
Version control
Evolution of GIT - Linus Torvald's magic
Introduction to Versioning (VCS) for Developers
2016 NIWeek - TI’s Continuous Delivery Machine for Accelerated Application De...
Streams in Parallel Development by Sven Erik Knop
Version Control in TFS 2013: GIT - 2013 Application Lifecycle Management Event
The eBay-Way Meetup IL - CI/CD with Microservices
Presentation on GIT at Eminence
Configuration management your infrastructure with open suse
Understanding GIT / Bitbucket training
The State of Security Enhanced Linux - FOSS.IN/2007
Source Code management System
Case management applications with BPM
What's new in JBoss BPM Suite 6.1
Building responsive and flexible applications with BPM
Introduction to Git
Building advanced case-driven applications
Flowable What´s coming next?
Version control
Ad

Similar to Source-it Version-contol & GIT - floating-lesson (20)

PPTX
Version Control with Git
PPTX
Git.pptx
PPTX
PPTX
PPTX
01 - Git vs SVN
PPTX
Lets git to it
PDF
Mini git tutorial
PPTX
Git 101
PPTX
Source Control Using Git
PDF
Git basic introduction & tutorial for begginer
PPTX
Presentation on Repository Control System
PDF
Version Control with Git
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
PPTX
Git 101 for Beginners
KEY
Let's Git this Party Started: An Introduction to Git and GitHub
PPTX
Introduction to Git and Github
PDF
Git & version control crash course
Version Control with Git
Git.pptx
01 - Git vs SVN
Lets git to it
Mini git tutorial
Git 101
Source Control Using Git
Git basic introduction & tutorial for begginer
Presentation on Repository Control System
Version Control with Git
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
Git 101 for Beginners
Let's Git this Party Started: An Introduction to Git and GitHub
Introduction to Git and Github
Git & version control crash course
Ad

More from Yoram Michaeli (10)

PPTX
Jenkins Pipeline 101 and TCI - presentation and workshop
PPTX
Issue-in-the-middle-here
PPTX
Continuous integration introduction
PDF
The Jenkins Pipeline Force Awakens - Jenkins User Conference Tel-Aviv 2018
PPTX
הרכב והעתיד The Car and the future
PDF
The Jenkins pipeline force awakens
PDF
The Jenkins Force Awaken Again @ JAM #6 meetup
PPTX
Li liq liqui liquibase
ODP
Choosing Git hosting service
PDF
Now i git it!!!
Jenkins Pipeline 101 and TCI - presentation and workshop
Issue-in-the-middle-here
Continuous integration introduction
The Jenkins Pipeline Force Awakens - Jenkins User Conference Tel-Aviv 2018
הרכב והעתיד The Car and the future
The Jenkins pipeline force awakens
The Jenkins Force Awaken Again @ JAM #6 meetup
Li liq liqui liquibase
Choosing Git hosting service
Now i git it!!!

Recently uploaded (20)

PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
L1 - Introduction to python Backend.pptx
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Introduction to Artificial Intelligence
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How to Choose the Right IT Partner for Your Business in Malaysia
Design an Analysis of Algorithms II-SECS-1021-03
Adobe Illustrator 28.6 Crack My Vision of Vector Design
L1 - Introduction to python Backend.pptx
Upgrade and Innovation Strategies for SAP ERP Customers
Operating system designcfffgfgggggggvggggggggg
How Creative Agencies Leverage Project Management Software.pdf
Softaken Excel to vCard Converter Software.pdf
Understanding Forklifts - TECH EHS Solution
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
wealthsignaloriginal-com-DS-text-... (1).pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PTS Company Brochure 2025 (1).pdf.......
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Navsoft: AI-Powered Business Solutions & Custom Software Development
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction to Artificial Intelligence
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free

Source-it Version-contol & GIT - floating-lesson

  • 1. Version Control & GIT Floating lesson Yoram Michaeli 21-July-2016 Source-it
  • 2. •Present what is version control and why we use it •Present what is GIT, its basic concept and what must we know about it in order to use it •Present basic GIT flows in practice Presentation Goals Source-it
  • 4. What is version control? • Version Control (VC) also known as source control or revision control • Version control – management of changes in documents, computer programs or other collection of information files • Revision control is any kind of practice that tracks and provides control over changes to source code • Version Control Systems (VCS) – GIT, SVN, ClearCase, CVS, Perforce Source-it
  • 5. Why do we need version control? • Collaboration • Work with different versions of the code • Control the different versions of the software • Meet legal, security and management requirements • Track changes of the code and configuration files Source-it
  • 7. What is GIT? • GIT – Free of charge Distributed Version Control System (DVCS) • GIT has been created in 2005 by Linus Torvalds for the development of the Linux Kernel • Every GIT directory on every computer is a full repository with complete history and full version- tracking capabilities • Every GIT directory is independent of network access or central server Source-it
  • 9. GIT basic terms Synchronization actions (network-related actions) • Clone – making a copy of a remote repository onto a local directory • Fetch – synchronize the local repository from the remote repository • Pull – update the local working directory for the current branch from the remote matching branch • Push – update the remote branch with the latest version of the current branch and/or tags on the local repository Local work terms (locally without network) • Add – stage files to be tracked by GIT • Commit – save local changes into the local repository • Branch – a repository version pointing to some path in the repository structure • Checkout – update the local working directory to a certain version of the repository • Merge – sync. a certain branch of the local repository from another branch or tags or version Source-it
  • 11. Common GIT workflows • Clone a repository • Synchronize the local repository • Commit a change • Create a new branch • Switch between branches • Merge from branch to branch • Pull request Source-it
  • 12. Clone a repository From command line: git clone git@github.com:yorammi/source-it.git Source-it
  • 13. Clone a repository In Eclipse: Source-it
  • 14. Synchronize the local repository From command line: git fetch origin git pull origin master git push origin master Source-it
  • 15. Commit a change From command line: git add –all git commit –m ”source-it change” Source-it
  • 16. Create a new branch From command line: git branch source-it git checkout source-it Which is equivalent to: git checkout –b source-it Source-it
  • 17. Switch between branches From command line: git checkout master git checkout source-it Source-it
  • 18. Merge from branch to branch From command line: git checkout master git merge source-it Source-it
  • 19. Pull request • Each GIT hosting service may handle pull request differently • Pull requests are best for code-review and collaboration Source-it