1. Command to add a directory or file
To add a file
2. Command to check the status of the files - (Locally modified or up to date)
cvs status <filename/Directory name>
3. Command to incorporate your changes into the repository
cvs commit.
4. Editing files is easy - once you have local copies, just edit them. None of your changes will be visible to other users until after you've committed them.
If you mess up a local copy of a file, starting over is easy. Delete the file using
rm <filename>, and use
cvs update to get a fresh copy from the repository.
5. If you want all your files to be updated without considering your locally modified changes then grep for locally modified files and then delete them and then do a cvs update to get the latest files from the stream.
Command to find the list of locally modified files
cvs -q status <folder name> | grep -i locally
Command to refresh local copies
cvs checkout and cvs update -d are more or less equivalent.
Other Usefule Commands
mkdir <newdir>
cvs add <newdir>
To add a file
cvs add newfile
cvs commit newfile
2. Command to check the status of the files - (Locally modified or up to date)
cvs status <filename/Directory name>
3. Command to incorporate your changes into the repository
cvs commit.
4. Editing files is easy - once you have local copies, just edit them. None of your changes will be visible to other users until after you've committed them.
If you mess up a local copy of a file, starting over is easy. Delete the file using
rm <filename>, and use
cvs update to get a fresh copy from the repository.
5. If you want all your files to be updated without considering your locally modified changes then grep for locally modified files and then delete them and then do a cvs update to get the latest files from the stream.
Command to find the list of locally modified files
cvs -q status <folder name> | grep -i locally
Command to refresh local copies
cvs checkout and cvs update -d are more or less equivalent.
Other Usefule Commands
cvs diff filename | Shows differences between your local copy of filename and the repository version that filename was based on. |
cvs diff -r 1.2 filename | Shows differences between your local copy of filename and version 1.2 of filename. |
cvs diff -r 1.2 -r 1.3 filename | Shows differences between versions 1.2 and 1.3. (regardless of what version your local copy is). |
cvs log filename | Show the commit log for filename (like rlog does with rcs). |
cvs annotate filename | Shows each line of filename, prefixed with the version number where the line was added, and the name of the person who added it. Useful for seeing who made a particular set of changes. |
No comments:
Post a Comment