Following are the basic CVS commands
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot -Q updateOption 2 :
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot update -d Project_V1
- Update a file
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot update -d "ProConfirmSv.java"
- Update a new folders
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot update -d
- Commit a file
cvs add cvs -d:pserver:user@cvsServer:/usr/local/cvsroot add ModificationUtil.java
- go to the relevant folder and issue the following command
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot commit -m '[Message]'
- Remove a branch
Option 1
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot rtag -d -B [TagName] [Project]Option 2
cvs "-q" "checkout" "DocLibrary"
- remove a tag
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot rtag -d Project_V1 cvs rtag -d Project_V1
- chcekout a project - checkout HEAD
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot checkout Project
- checkout a branch
1. got to the workspace
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot checkout -r Project_V1_QA Project2. then rename the foder
checkout -d branch name Module nameex
cvs -d:pserver:user@cvsServer:/usr/local/cvsroot checkout -r Project_V1 Project
- check the status of the files by files or folder - cvs status
Summary of CVS commands are: add Add a new file/directory to the repository admin Administration front end for rcs annotate Show last revision where each line was modified checkout Checkout sources for editing commit Check files into the repository diff Show differences between revisions edit Get ready to edit a watched file editors See who is editing a watched file export Export sources from CVS, similar to checkout history Show repository access history import Import sources into CVS, using vendor branches init Create a CVS repository if it doesn't exist kserver Kerberos server mode log Print out history information for files login Prompt for password for authenticating server logout Removes entry in .cvspass for remote repository pserver Password server mode rannotate Show last revision where each line of module was modified rdiff Create 'patch' format diffs between releases release Indicate that a Module is no longer in use remove Remove an entry from the repository rlog Print out history information for a module rtag Add a symbolic tag to a module server Server mode status Display status information on checked out files tag Add a symbolic tag to checked out version of files unedit Undo an edit command update Bring work tree in sync with repository version Show current CVS version(s) watch Set watches watchers See who is watching a file (Specify the --help option for a list of other help options)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.