|
PageName
Basic SVN usage1. For the first you need to create a local copy of the source tree in your computer. This is termed as "checkout". [root@tlm ~]# svn checkout https://machapuchhre.googlecode.com/svn/trunk/machapuchhre --username YOUR_USER_NAME --password YOUR_PASSWORD</code> You need to "checkout" only for the first time. After executing the above command, you will have the local source tree. You can perform modifications,addition,deletion of files as you wish. 2. To add files/directories to svn: [root@tlm ~]# svn add DESIRED_FILE.EXT [root@tlm ~]# svn add DESIRED_DIRECTORY [root@tlm ~]# svn del DESIRED_FILE.EXT [root@tlm ~]# svn del DESIRED_DIRECTORY You can view the status of your local source tree using [root@tlm ~]# svn status 3. After making all the desired changes , if you wish to write your changes to SVN source tree, you will "commit" your files to remote SVN tree. [root@tlm ~]# svn commit --message "THE _DESCRIPTIVE_ LOG MESSAGE YOU WANT TO SET FOR THIS COMMIT" --username YOUR_USER_NAME --password YOUR_PASSWORD 4. To update you local source with the remote SVN tree (ie: to bring you local tree in sync with remote tree) [root@tlm ~]# svn update --username YOUR_USER_NAME --password YOUR_PASSWORD TO GET YOUR PASSWORD FOR SVN goto "http://code.google.com/hosting/settings" after loggin into googlecode with your gmail account TheLinuxManiac Last Updated on: May 2, 2007 11:24PM |