linux_wiki:svn

This is an old revision of the document!


SVN

General Information

Subversion (svn) is a “free/open-source version control system”.

Checklist

  • Distro(s): Any
  • Package: svn installed

Checkout

Checkout creates a local copy of the repo.

Checkout command

svn checkout URL

Shortcut

svn co URL

Update

Update changes from the repo to your local copy.

svn update

Commit

A commit saves changes to the repo.

Commit command

svn commit -m "my changes description"

Add File

Add a new file/directory to the repo. New file only gets pushed to the repo copy upon commit.

  1. Create a new file/directory locally
  2. Add the file with svn
    svn add mynewfile
  3. Commit the added file to the repo
    svn commit -m "Adding a new file to the project." mynewfile

Delete File

Delete a file from the working copy. The file will be removed from the repo upon commit.

  1. Delete file via svn
    svn delete mynewfile
  2. Commit the deletion to remove from the repo
    svn commit -m "removing mynewfile." mynewfile

Move File

Move or rename a file. File is changed in the repo upon commit.

  1. Move/rename a file
    svn move oldfilename newfilename
  2. Commit move/rename
    svn commit -m "Renaming my file" newfilename

Diff

Show the differences between your working copy and the repo copy.

svn diff myfilename

Status

Show the status of the file(s) in the working copy.

svn status PATH

Show the specifiers for various statuses

svn help status

Log

View logged commits.

svn log PATH

  • linux_wiki/svn.1479245310.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)