How do you revert (roll back) to an earlier version of a committed file in CVS
Asked Answered
H

1

5

Let's take for example a single file committed in CVS with the following history.

test.cpp
rev 1.1
rev 1.2
rev 1.3

How do I revert to rev 1.2 discarding the changes in 1.3 and then continue to make modification from that point on?

Holcomb answered 6/4, 2010 at 21:24 Comment(0)
H
8

cvs update -j 1.3 -j 1.2 test.cpp

Holcomb answered 6/4, 2010 at 21:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.