Version Control
Version Control
Version Control
Edmund Ochieng'
Introduction
Introduction
➢ It is also known as revision control or alternatively,
as Source Code Management (SCM).
➢ It manages changes to documents and other
collaboration.
Merits of Version Control
Why use Version Control?
a) Lock-modify-Unlock solution
This technique allows one person to modify a file
at a time using locks.
b) Copy-Modify-Merge solution
This technique involves creating a working copy
for all svn clients which are merged later on
commit.
REFERENCES
References
➢ http://en.wikipedia.org/wiki/Revision_control
➢ http://svnbook.redbean.com
Basic Usage
Basic usage
Create a repository
This is the process of creating a repository where the
projects would be stored.
$ svnadmin create /var/svn/repos
Importing a project
svn import copies an unversioned copy of files to
the repository.
$ svn import mytree file:///var/svn/repos/[project] -m "Initial import"
Adding mytree/foo.c
Adding mytree/bar.c
Committed revision 1.
Basic usage(contd.)
Initial Checkout
Initial checkout involves creating of a working copy
of a project. Normally done on the clients system.
$ svn+ssh checkout http://192.168.0.120/repos/svn/trunk
A mytree/foo.c
A mytree/bar.c
Checked out revision 1.