---
title: "How to use cvs in linux?"
author: "RobertLeeJesus"
date: "2008-07-28T15:10:38Z"
tags: []
slug: "how-to-use-cvs-in-linux"
draft: false
lastmod: "2009-01-05T17:57:56Z"
id: 220472
url: "https://hidefromall.iteye.com/blog/220472"
---

1\. Find the modifed files.  

     cvs status | grep File | grep Modified

 

2\. Find the modifed files and output it in red.

     cvs status | grep File | grep Modified | sed 's#\\(File:.\*Status:.\*\\)#\\x1b[1;31m\\1\\x1b[1;37m#'

 

3\. How to use tag?

     cvs tag release\_name module\_name

     cvs status -v moudle\_name  
     ===================================================================  
     ...................................................................  
     ......  
         Existing Tags:  
             rel-0-4                     (revision: 1.4)

     cvs checkout -r release\_name module\_name

 

4\. How to see what moudles are in the repository?

     cvs co -c

 

5.  How to commit a file?

      cvs commit -m "comments" filename

 

6\. How to commit all files in a folder and its sub folders?

     (1). cvs commit

     (2). It shows

  1  
  2 CVS: ----------------------------------------------------------------------  
  3 CVS: Enter Log.  Lines beginning with \`CVS:' are removed automatically  
  4 CVS:  
  5 CVS: Committing in .  
  6 CVS:  
  7 CVS: Modified Files:  
  8 CVS:    src/etc/conf/abc.conf  
  9 CVS:    src/etc/conf/def.conf

 10 CVS: ----------------------------------------------------------------------

    (3). Please inut text in line 1 and don't start with CVS:. If it starts with CVS:, then cvs system will remove it and don't take it as comments. That is to say, cvs system resolvse the editing file to get comments(without CVS: starting) and files names(with CVS starting) etc.

 

7  How to list all of the tags of a file?

      cvs status -v filename

 

 

**Reference**

 

http://my.opera.com/jlake/blog/show.dml/457333

http://www.chedong.com/tech/cvs\_card.html