[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Readding deleted files
From: |
Larry Jones |
Subject: |
Re: Readding deleted files |
Date: |
Fri, 15 Mar 2002 00:52:29 -0500 (EST) |
Cristian Gheorghe writes:
>
> I have removed a file (cvs rm command) which now needs to go back into
> the project with the same name and in the same directory. The file
> which was removed is now in the repository Attic directory. What
> command can I use to be able to "reactivate" the file?
Do you want to recover the old contents, or just create a brand new file
with the same name? If you want to recover the old contents, use update
with two -j options to undo the remove. For example, if "cvs log" says
the current revision of the file is 1.40 (with state "dead"), do:
cvs up -j 1.40 -j 1.39 file
If you want a brand new file with the same name, just "cvs add" it and
CVS will more the RCS file out of the Attic when you commit it.
-Larry Jones
That's the problem with nature. Something's always stinging you
or oozing mucus on you. -- Calvin