Code University

      "Where tuition is free!"

News | Images | Contact     
  • Home
  • Coding KC
  • Scripts
  • Software
  • Templates
  • Tutorials
  • About
 

Coding Knowledge Center

CVS


Page Contents
[X] CLOSE

Checkout

  • Checkout

Directory

  • Directory (Add to existing module)
  • Directory (Add to repo)
  • Directory (Remove a checked-out directory)
  • Directory (Remove)

Files

  • Files (Mark for addition)
  • Files (Mark for removal)
  • Files (Permanently add)
  • Files (Removes permanently)
  • Files (Rollback to a previous version)
  • Files (View differences between file versions)
  • Files (View file revisions)

Repository

  • Repository (Create new repo)
  • Repository (View history)
Toggle Page Contents
CheckoutCopy  To New Window  Top ^
Syntax: cvs -d [repo directory] checkout [dirname] Example: cvs -d /usr/local/cvsroot checkout public_bin
Get directories and files from the repository to be modified.



Directory (Add to existing module)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] add [directory] Example: cvs -d /usr/local/cvsroot import add morestuff
Creates a directory within a module.



Directory (Add to repo)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] import -m [message] [directory] [vendor name] start Example: cvs -d /usr/local/cvsroot import -m "Created cati directory structure" my_dept my_company start
Creates directories in the repository.



Directory (Remove a checked-out directory)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] release -d [dirname] Example: cvs -d /usr/local/cvsroot release -d httpd
Remove a directory which you are done with.



Directory (Remove)Copy  To New Window  Top ^
This can not be done explicitly through CVS. You have to hack the cvs repo manually. Find the directory in the repo and just remove it.
See above.



Files (Mark for addition)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] add [filename] Example: cvs -d /usr/local/cvsroot add test.php
Marks a file to be added to the repository.



Files (Mark for removal)Copy  To New Window  Top ^
cvs -d [repo directory] remove [filename] Example: cvs -d /usr/local/cvsroot remove test.php
Marks a file to be removed from the repository.



Files (Permanently add)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] commit [filename] Example: cvs -d /usr/local/cvsroot commit test.php
Adds a file permanently to the repository.



Files (Removes permanently)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] commit [filename] Example: cvs -d /usr/local/cvsroot commit test.php
Removes a file permanently from the repository.



Files (Rollback to a previous version)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] diff -r [version number to rollback to] [filename] | patch -R Example: cvs -d /usr/local/cvsroot diff -r 1.4 myprog.pl | patch -R
Rollback to version 1.4 of myprog.pl.



Files (View differences between file versions)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] diff -r [version number] -r [version number] [filename] Example: cvs -d /usr/local/cvsroot diff -r 1.1 -r 1.2 httpd.conf
List file differences from one version to the next.



Files (View file revisions)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] log [filename] Example: cvs -d /usr/local/cvsroot log test.php
Lists all version revisions for a file



Repository (Create new repo)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] init Example: cvs -d /usr/local/cvsroot init
Creates a new repository for your source code. This repository is where your source code will be stored along with knowledge of all the changes made.



Repository (View history)Copy  To New Window  Top ^
Syntax: cvs -d [repo directory] history Example: cvs -d /usr/local/cvsroot history -e -z e (get history for everyone, using eastern timezone for time displays)
Lists the history of the repository.
Technologies
  • Introduction
  • Awk
  • Bash
  • Cron
  • CSH
  • CSS
  • CVS
  • FTP
  • FTPS
  • HTML
  • JavaScript
  • KSH
  • Linux
  • Linux (Debian)
  • Linux (LPIC 101-102)
  • Linux/Unix
  • Mac OS X
  • MySQL
  • Oracle
  • Perl
  • PGP
  • PHP
  • Sed
  • SQLite
  • SSH/SCP/SFTP
  • Telnet
  • UNIX
  • Windows
Resources
  • CodeIgniter - MVC Framework
  • HowtoForge - Linux Tutorials
  • Linux Today - Linux News
  • Lxer - Linux News Feed
  • Monsterb - Linux, Podcasting
  • MySQL - Databasing
  • Perl - Programming
  • PHP - Programming
  • Systhread - Admin & Programming
  • W3Schools - Web Tutorials
About

Code University contains a wealth of technical information aimed at the computer sciences.


 
Home | Coding KC | Scripts | Software | Templates | Tutorials | About
Top ^
 
© 2007-2012 Code University| Disclaimer
Website template by Arcsin