Subversion

Working with Subversion without any Server is easy.

Create repository

  • Create a repository somewhere on your disk:
repo=~/subversion/coolrepository
mkdir -p $repo
svnadmin create $repo
  • Go to your working directory, check it out and work:
svn co file://${repo}

Commands for work

Some useful commands to work with (all following commands do not modify the repository until ‘ci’ is used)

  • svn add [file] - schedule files or directories to add with the next commit
  • svn cp [src] [dest] - copy file preserving its history
  • svn mv [src] [dest] - rename file preserving its history
  • svn rm [file] - remove files or directories
  • svn mkdir [dir] - create version controlled subdir
  • svn revert - restores last revision (undo local changes)

To commit/check in changes to the repository with a message try:

  • svn ci -m "i added nice stuff"

If someone else made changes to the repository you can update your local files like that:

  • svn up

Some informative commands:

  • svn log [file] - show changelog for file
  • svn info - show some info

Tools

 
linux/subversion.txt · Zuletzt geändert: 13.11.2007 00:08:55 von da7a