Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
CVS usage
(view source)
Revision as of 14:37, 3 May 2014
647 bytes added
,
14:37, 3 May 2014
→Adding/removing files
Line 86:
Line 86:
To add a file to source control:
To add a file to source control:
cvs add <file>
cvs add <file>
+
+
====Revert changes to files====
+
+
*To see history of changes on a file do
+
cvs log oldfile
+
+
* To see exactly what has changed between two different revisions of a file:
+
cvs diff -r < first version > -r < second version > oldfile
+
eg
+
cvs diff -r 1.1 -r 1.2 oldfile
+
+
* To revert to older version of a file, do:
+
cvs update -j 1.7 -j 1.5 oldfile
+
and the you have to commit modification to cvs
+
cvs commit -m 'oldfile modification reverted from 1.X to 1.Y'
+
+
*If you want to go back to the most up to date version just do the following:
+
cvs update -A oldfile
+
The -A tag tells update to get rid of the sticky tag and do a full update of the file.
====Prepare a working copy====
====Prepare a working copy====
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search