info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retrieving file from attic


From: Larry Jones
Subject: Re: retrieving file from attic
Date: Fri, 11 May 2001 14:47:28 -0400 (EDT)

McCann, Brian writes:
> 
> The CVS doc talks a lot about removing files but not restoring them, I
> accidentally removed the wrong file
> from my working dir is there a way to get this file back from the attic?

If you haven't committed yet, doing "cvs add" on the file will cancel
the "cvs remove".  If you have committed, use "cvs status" to find out
what the (dead) revision is and remove it.  For example, if "cvs status"
shows that the repository revision is 1.12, you would do:

        cvs update -j1.12 -j1.11 file

(note that the revision are in reverse order to undo the removal) and
then commit.

-Larry Jones

I think we need to change the rules. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]