To add a file(s) to CVS:
cvs add <file name(s)>
In the following example, I will use the directory I created above (new_stuff) and create several files within that directory:
% cd new_stuff
% touch a.txt
% touch b.txt
% touch c.txt
% cvs add *.txt
cvs add: scheduling file `a.txt' for addition
cvs add: scheduling file `b.txt' for addition
cvs add: scheduling file `c.txt' for addition
cvs add: use 'cvs commit' to add these files permanently
% cvs commit -m "Added new files"
cvs commit: Examining .
RCS file: /var/lib/cvsrepos/ProjectX/new_stuff/a.txt,v done
Checking in a.txt; /var/lib/cvsrepos/ProjectX/new_stuff/a.txt,v <-- a.txt
initial revision: 1.1
done
RCS file: /var/lib/cvsrepos/ProjectX/new_stuff/b.txt,v
done
Checking in b.txt;
/var/lib/cvsrepos/ProjectX/new_stuff/b.txt,v <-- b.txt
initial revision: 1.1
done
RCS file: /var/lib/cvsrepos/ProjectX/new_stuff/c.txt,v
done
Checking in c.txt; /var/lib/cvsrepos/ProjectX/new_stuff/c.txt,v <-- c.txt initial revision: 1.1
done
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home