0% found this document useful (0 votes)
150 views19 pages

Software Version Control

This document discusses software version control and the different types including local, centralized, and distributed version control systems. It describes the importance of version control for collaboration, storing and restoring different versions, and backing up code. Key concepts are explained such as repositories, branches, commits, merges, tags, and clones. The distributed version control system Git is highlighted, and common Git commands like init, add, commit, push and pull are listed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views19 pages

Software Version Control

This document discusses software version control and the different types including local, centralized, and distributed version control systems. It describes the importance of version control for collaboration, storing and restoring different versions, and backing up code. Key concepts are explained such as repositories, branches, commits, merges, tags, and clones. The distributed version control system Git is highlighted, and common Git commands like init, add, commit, push and pull are listed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Software Version Control

AJAY MAHARJAN
MECE
Contents
Introduction
Types of version control
Importance of version control
Version controlled concept
Git
Git commands
Git demo
Introduction
Component of software configuration
management
Also called revision control or source control
categories of software that helps a software
team manage changes to source code over
time.
keeps track of every modification to the code
in a special kind of database.
Software Versioning Types

Local Version Control Systems


Centralized Version Control Systems
Distributed Version Control Systems
Local Version Control System
Simple type of version control in which the files
are copy into any directory.
It is incredibly error prone.
To deal with this issue, develop a local VCSs
that a had a simple database that kept all the
changes to file under the revision control
Local Version Control System(contd.)
Centralized Version Control System
Better than the local CVSs
Having a Master copy contained all the versioned
files and a number of client that check out files
from the central place.
Administrator have fine-grained control over who
can do what and its far easier to administer a
CVSs that is to deal with local database on every
client
Central Version Control System(contd.)
Distributed Version Control system

As CVSs has a draw back as when the central


server is down then no body can collaborate at all.
It is a fully mirror the repository
Any of the client repository can be copied back up
to the server to restore it.
Every clone is really a full backup of all the data.
Distributed Version Control System(contd.)
Importance of Version Control
Collaboration
Storing version (properly)
Restoring previous version
Understand what happened
Back up
version Control Concepts
Repository - The database storing the files.
Server - The computer storing the repo.
Client - The computer connecting to the repo.
Working set / Working copy - Your local directory of
files, where you make changes.
Trunk / Main - The primary location for code in the repo.
Branch - Create a separate copy of a file/folder for private
use
Commit - Command to store that version with some
message input
Checkout and revert - Jump to specific commit or branch
or tags
Version Control Concept contd..
Merge - Apply the changes from one file to another, to bring
it up-to-date.
Conflict - When pending changes to a file contradict each
other
Resolve - Fixing the changes that contradict each other
Tags - Static branch for storing a stable version
Clone - Copy project to local from remote
Push / Pull - send changes from local to remote or vice versa
Logs - view the list of versions we have committed
Diff - view changes within two points of commit or branches
or tags
Status - view local changes and files currently
Git
Git is the type of Distributed version Control
System.
It was created by Linus Torvalds in 2005 for
development of the Linux Kernel.
Git supports rapid branching and merging
Repository can be publish via HTTP and FTP.
Efficient handling of large project.
Toolkit base design.
Git Commands
Git init
Git add .
Git status
Git commit -m first push
Git diff
Git log
Git remote add origin http://origin.url
Git push origin master
Git Demo
Reference
https://www.atlassian.com/git/tutorials/what-
is-version-control
https://www.git-
tower.com/learn/git/ebook/en/desktop-
gui/basics/why-use-version-control
https://git-scm.com/book/en/v2/Getting-
Started-About-Version-Control
Any Question
Thank YOU

You might also like