CVS basic setup & Commands

I. Setup

  • CVS repository: The CVS repository of LVG project is located on "/nfsvol/nls/cvs"
  • Setup:
    1. Add "/depot/bin" to your path.

      Example in Unix:
      Add following line in file ".cshrc"
      set path=($path /depot/bin)

    2. Set environment variable - CVSROOT

      Example in Unix:
      Add following line in file ".cshrc"
      setenv CVSROOT /nfsvol/nls/cvs

    3. Make the new ".cshrc" effect

      Example in Unix:
      > cd
      > source .cshrc

II. Commands

  • Add file/directory to CVS repository
    • cvs import xxx
    • cvs add xxx

  • Setup for multiple users
    • cvs watch on xxx

  • Checkout file/directory to local working file system
    • cvs checkout xxx

  • Modify a file
    • cvs editors
    • cvs edit xxx
    • Modify the file (vi or other editors)
    • cvs unedit xxx
    • cvs commit xxx

  • Modify a file
    • cvs editors
    • cvs edit xxx
    • Modify the file (vi or other editors)
    • cvs unedit xxx

  • Other Commands
    • cvs update xxx
    • cvs status xxx