Difference between revisions of "SVN server"

From Wikiid
Jump to: navigation, search
(New page: Here is a tiny Subversion (svn) HOWTO. It assumes that you've already created a repository. == Initial Import == To put your content into the repository: Suppose your content (on your l...)
 
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
  
 
...so you can pretend it's under /home/abcd
 
...so you can pretend it's under /home/abcd
 +
 +
== Subsequent updates ==
 +
To get subsequent changes from Subversion, just go to whatever directory you want to update into and...
 +
 +
  cd /home/abcd/efg/hij
 +
  svn update
 +
 +
Subversion remembers all of the other information in the '.svn' directory - so no more messy parameters you to worry about!
 +
 +
== Changing your local version ==
 +
 +
  svn add foo
 +
 +
Schedule the addition of 'foo' (and everything beneath it if it's a directory).
 +
 +
  svn delete foo
 +
 +
Schedule 'foo' to be deleted from the repository - also deletes the local copy.  If it's a directory, everything beneath it goes too.
 +
 +
  svn copy foo bar
 +
  svn move foo bar
 +
 +
Schedule 'foo' to be moved or copied into 'bar'.
 +
 +
== Committing changes ==
 +
 +
  svn commit --message "reason for committing"
 +
 +
This updates everything
 +
 +
== See Also: ==
 +
* http://svnbook.red-bean.com/en/1.1/ch03s05.html
 +
* http://svnbook.red-bean.com/en/1.1/index.html
 +
 +
== My Repositories: ==
 +
* [http://www.sjbaker.org/plib2svn PLIB II]
 +
* [http://www.sjbaker.org/gameToolssvn gameTools]
 +
* [http://www.sjbaker.org/unificationsvn Unification]

Latest revision as of 19:44, 4 February 2008

Here is a tiny Subversion (svn) HOWTO. It assumes that you've already created a repository.

Initial Import

To put your content into the repository:

Suppose your content (on your local computer) is in /home/abcd and the repository directory is abcdsvn:

 cd /home
 svn import abcd http://www.sjbaker.org/abcdsvn -m "Initial import"

Checking out the entire repository

 cd /home
 svn checkout http://www.sjbaker.org/abcdsvn

That created '/home/abcdsvn' - so you'll probably want to say:

 ln -s abcdsvn abcd

...so you can pretend it's under /home/abcd

Subsequent updates

To get subsequent changes from Subversion, just go to whatever directory you want to update into and...

 cd /home/abcd/efg/hij
 svn update

Subversion remembers all of the other information in the '.svn' directory - so no more messy parameters you to worry about!

Changing your local version

 svn add foo

Schedule the addition of 'foo' (and everything beneath it if it's a directory).

 svn delete foo

Schedule 'foo' to be deleted from the repository - also deletes the local copy. If it's a directory, everything beneath it goes too.

 svn copy foo bar
 svn move foo bar

Schedule 'foo' to be moved or copied into 'bar'.

Committing changes

 svn commit --message "reason for committing"

This updates everything

See Also:

My Repositories: