| Desire |
Command |
| Bring my sandbox up-to-date |
cvs update |
| Commit changes to file |
cvs commit -m "reason you are checking this file in" |
| Put a new file or directory under version control ( files must be committed, directories do not need to be ) |
cvs add filename |
| Remove a file from CVS ( it is not neccessary to remove directories ) |
cvs rm -f filename |
| Pull code from a certain date |
cvs update -D '01/25/2002 12:00 PDT' |
| Pull code from certain branch/tag/revision |
cvs update -r tagname |
| Pull code the trunk, resetting "sticky" tags ( needed after you use "cvs update -D" or "cvs update -r") |
cvs update -A |
| What branch/tag/date/revision are my files stuck
to? |
cvs status |
| Who committed checkins on this file and why? ( a.k.a "who broke the build" ) |
cvs log -Nb filename |
| What tags/branches have been attached to this file? | cvs log filename |
| "Roll back" file to specified revision/tag/branch |
cvs update -pr tagname filename > filename |
| "Roll back" file to specified date |
cvs update -pD '01/25/2002 12:00 PDT' filename
> filename |
| Rename file with Unix/CVS |
mv oldfile newfile cvs add newfile cvs rm oldfile cvs commit -m "renamed oldfile to newfile" newfile oldfile |
| What are the differences between the
repository's version and my version of a file? |
cvs diff filename |
| Bring my sandbox up-to-date, discarding my uncommitted changes | cvs update -C |
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
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
rdiff Create 'patch' format diffs between releases
release Indicate that a Module is no longer in use
remove Remove an entry from the repository
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
watch Set watches
watchers See who is watching a file
| Desire |
Command |
| change username in sandbox |
find * -regex .*CVS/Root -print0 | xargs -0 perl -p -i.orig -e "s/old/new/;" |