Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Subversion basic commands Part II

This code shows how to checkout, commit, and verify the changes to a project file in subversion. See also Subversion basic commands part 1 http://urltea.com/1urp . The Subversion Online book can be read here http://svnbook.red-bean.com/

   1  
   2  # get the project to edit
   3  svn checkout http://mysite.com/svn/my-repository/my-project
   4  
   5  #add a new file to the project
   6  svn add feed/changelog
   7  
   8  # commit the changes to the repository
   9  svn commit feed
  10  
  11  # check to see that the actual changes have been committed.
  12  svn cat 
  13  http://mysite.com/svn/my-repository/my-project/trunk/gwd/feed/gwd.rb
  14  
  15  #remove the local project files
  16  rm my-project -Rf
  17  
  18  #get the project files without version control
  19  svn export http://mysite.com/my-repository/my-project/trunk/gwd

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS