Download presentation
Presentation is loading. Please wait.
1
CVS By: Mark Henkel
2
General Syntax The general syntax of all cvs commands:
cvs cvs_option command command_option
3
Checking out from your repository
Checkout all the contents of your previously set up repository into the directory of your choice. cvs -d path_to_professors_pub_directory checkout -d directory_name_of_your_choice your_umbc_username Example from my graphics class: cvs -d /afs/umbc.edu/users/j/b/jbarcz1/pub/435 checkout -d CMSC435 henkel1
4
Adding to the repository
Add a new file or directory to the repository cvs add file_name cvs add directory_name Example: cvs add main.cpp cvs add CMSC435
5
Removing from the repository
Remove a file or directory from the repository cvs remove file_name Example: cvs remove main.cpp
6
Updating Receive a copy of any files in the repository that are not currently in your working directory. cvs update –d Throw away your latest changes and retrieve the last checked in version of a file cvs update -C file Check what files in the working directory are in the repository and which files have been edited cvs –n update
7
Checking differences between versions
Check the differences between the version in your current directory and the version of the same file in the repository. cvs diff file_name Example: cvs diff main.cpp
8
Committing a new version to the repository
Updates the file of the same name in the repository to the current version in the working directory cvs commit -m “a short message talking about the new revision"
9
Help For a list of all cvs commands cvs help
Additional help on any single command cvs --help command_name Example: cvs --help diff List of cvs global -_ options able to be used with all commands cvs --help-options
10
Work Cited Srevilak. "A Quick and Dirty Guide to CVS." A Quick and Dirty Guide to CVS. N.p., 17 July Web. 01 Apr < Barczak, Joshua. "CMSC 435/634: Introduction to Computer Graphics." N.p., n.d. Web. 01 Apr <
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.