Importing commands to take note:
- Initial repository layout for MyTestProject
# svn import /tmp/mytestproject to file://var/www/svn/repos/mytestproject -m
- Checking Out
$ svn co http://yoursvnserver/repos/mytestproject
- Edit and Commit
$ svn co http://yoursvnserver/repos/mytestproject
$ svn commit -m "Added a line to testconf1.cfg."
- Adding and Commit
$ svn co http://yoursvnserver/repos/mytestproject
$ svn add configurations/AnotherTestConf2.cfg
$ svn commit -m "Added something else"
- Deleting
$ svn co http://yoursvnserver/repos/mytestproject
$ svn delete configurations/AnotherTestConf2.cfg
$ svn commit -m "Delete something"
- Reverting to Previous Version
$ svn log http://yoursvnserver/repos/mytestproject
(You will see a complete list of revision numbers along with the comments)
$ svn co -r (some number) http://yoursvnserver/repos/mytestproject
- To add back files to the current repository
$ svn copy http://yoursvnserver/repos/mytestproject/oldversionfile@NNN ./oldversionfile (where NNN is the revision number)
- Version Control with Subversion (Free Online Documents and Ebook)
No comments:
Post a Comment