[Top][All Lists]

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

Re: How do I 're checkout' a file?

From: Mark D. Baushke
Subject: Re: How do I 're checkout' a file?
Date: Thu, 28 Oct 2004 10:02:12 -0700

Hash: SHA1

address@hidden writes:

> I'm fairly new to CVS but I have been trying to read around the subject
> - so sorry in advance if this is a silly question.
> I have checked out a file, made some changes but have decided I want to
> revert back to the version in CVS.

cvs update -C file

it will rename your current file to .#file.x.y (where x.y is the current
version of the file you were editing) and then checkout a clean version
of the file.

> One of my collegues suggested deleting the file, then doing a 'cvs
> update' - I'm not convinced this is the best way of performing this
> function.

It is not necessarily a bad idea, but moving the file out of the way
and doing a 'cvs update' would probably be safer in case you have any
desire to crib some of your changes and put them into the file again.

> Any suggestions?

See above.

        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

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