This is an old revision of the document!
SVN
General Information
Subversion (svn) is a “free/open-source version control system”.
Checklist
- 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.
- Create a new file/directory locally
- Add the file with svn
svn add mynewfile
- 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.
- Delete file via svn
svn delete mynewfile
- 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. - Move/rename a file<code bash>svn move oldfilename newfilename
- 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 </code. ---- ====== Log ====== View logged commits. <code bash> svn log PATH