Give cvs beginners

xiaoxiao2021-03-06  76

1. Configuration Environment.

STENV CVSROOT: PSERVER: UserName @ Serverip: Path

Create User and Password

2. Install CVS.

1. Run the config file in the installer directory

2. Run Make Compile Generated Makefile File

3. Run make install installation CVS (default installation directory is / usr / local / bin / cvs, you can change your Makefile file change installation directory)

3. Use CVS (here only supplement, and experience summary, each parameter) should be used to refer to CVS documentation)

1. Check Out

General Command Format: CVS Checkout (CO) [PathName] (refers to the current directory operation, create a file directory)

On CVS, since the same file can be changed simultaneously, it is equivalent to the first GET LAST VERSION for the Check Out, and the Update update file version is used later.

2. Update (Get Version)

General Command Format: CVS Update [-r Version] File (Dir) Name

It should be noted that after using -r specifying Version, it is equivalent to marking this file. This version will be obtained when update later, unless the version number is specified, or all tags are removed with the -A parameter.

3. Commit (Check IN)

General Command Format: CVS Commit (CI) [File (Dir) Name]

Before each commmit, Server will automatically compare with the previous version and prompt users Merge.

4. Add file or Dir

Add a file to the database or trouble, you must add new files and directories in the catalog you have check out.

When running over the above command, you must run the commit command again, file the files in the local working directory or directory Check IN to Server.

5. REMOVE FILE OR DIR

The operation of deleting files is similar to an increase, just to delete the file or directory you want to delete in your local working directory before commiting. Moreover, deleting a directory in CVS does not really delete (with Check Out can be restored), just remove all files in the deleted directory.

6. Import

This command is used to join a new database to the Server end.

Special note is that the current directory of this operation must be the next level of directory to join the directory, which adds all the files and directories in all current directorys to a new database.

7. Admin

It is mainly used for some advanced operations, the most commonly used possible

Cvs admin [-l (-u)] -L represents the lock file, and -u represents unlocking. This command is used to independent Check Out a file.

转载请注明原文地址:https://www.9cbs.com/read-91482.html

New Post(0)