Differences
This shows you the differences between two versions of the page.
linux_wiki:svn [2016/03/18 23:23] billdozor [SVN] |
linux_wiki:svn [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SVN ====== | ||
- | **General Information** | ||
- | |||
- | Subversion (svn) is a " | ||
- | |||
- | **Checklist** | ||
- | * Distro(s): Any | ||
- | * Package: svn installed | ||
- | |||
- | ---- | ||
- | |||
- | ====== Checkout ====== | ||
- | |||
- | Checkout creates a local copy of the repo. | ||
- | |||
- | Checkout command | ||
- | <code bash> | ||
- | svn checkout URL | ||
- | </ | ||
- | |||
- | Shortcut | ||
- | <code bash> | ||
- | svn co URL | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Update ====== | ||
- | |||
- | Update changes from the repo to your local copy. | ||
- | |||
- | <code bash> | ||
- | svn update | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Commit ====== | ||
- | |||
- | A commit saves changes to the repo. | ||
- | |||
- | Commit command | ||
- | <code bash> | ||
- | svn commit -m "my changes description" | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Add File ====== | ||
- | |||
- | Add a new file/ | ||
- | |||
- | - Create a new file/ | ||
- | - Add the file with svn<code bash>svn add mynewfile</ | ||
- | - Commit the added file to the repo< | ||
- | |||
- | ---- | ||
- | |||
- | ====== Delete File ====== | ||
- | |||
- | Delete a file from the working copy. The file will be removed from the repo upon commit. | ||
- | |||
- | - Delete file via svn<code bash>svn delete mynewfile</ | ||
- | - Commit the deletion to remove from the repo< | ||
- | |||
- | ---- | ||
- | |||
- | ====== Move File ====== | ||
- | |||
- | Move or rename a file. File is changed in the repo upon commit. | ||
- | |||
- | - Move/rename a file< | ||
- | - Commit move/ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Diff ====== | ||
- | |||
- | Show the differences between your working copy and the repo copy. | ||
- | |||
- | <code bash> | ||
- | svn diff myfilename | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Status ====== | ||
- | |||
- | Show the status of the file(s) in the working copy. | ||
- | |||
- | <code bash> | ||
- | svn status PATH | ||
- | </ | ||
- | |||
- | Show the specifiers for various statuses | ||
- | <code bash> | ||
- | svn help status | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Log ====== | ||
- | |||
- | View logged commits. | ||
- | |||
- | <code bash> | ||
- | svn log PATH | ||
- | </ | ||
- | |||
- | ---- |