linux_wiki:svn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:svn [2017/11/08 14:47]
billdozor [Log]
linux_wiki:svn [2019/05/25 23:50]
Line 1: Line 1:
-====== 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 
-<code bash> 
-svn checkout URL 
-</code> 
- 
-Shortcut 
-<code bash> 
-svn co URL 
-</code> 
- 
----- 
- 
-====== Update ====== 
- 
-Update changes from the repo to your local copy. 
- 
-<code bash> 
-svn update 
-</code> 
- 
----- 
- 
-====== Commit ====== 
- 
-A commit saves changes to the repo. 
- 
-Commit command 
-<code bash> 
-svn commit -m "my changes description" 
-</code> 
- 
----- 
- 
-====== 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<code bash>svn add mynewfile</code> 
-  - Commit the added file to the repo<code bash>svn commit -m "Adding a new file to the project." mynewfile</code> 
- 
----- 
- 
-====== 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</code> 
-  - Commit the deletion to remove from the repo<code bash>svn commit -m "removing mynewfile." mynewfile</code> 
- 
----- 
- 
-====== 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</code> 
-  - Commit move/rename<code bash>svn commit -m "Renaming my file" newfilename</code> 
- 
----- 
- 
-====== Diff ====== 
- 
-Show the differences between your working copy and the repo copy. 
- 
-<code bash> 
-svn diff myfilename 
-</code> 
- 
----- 
- 
-====== Status ====== 
- 
-Show the status of the file(s) in the working copy. 
- 
-<code bash> 
-svn status PATH 
-</code> 
- 
-Show the specifiers for various statuses 
-<code bash> 
-svn help status 
-</code> 
- 
----- 
- 
-====== Log ====== 
- 
-View logged commits. 
-<code bash> 
-svn log PATH 
-</code> 
- 
-\\ 
-View diff of a specific logged revision 
-<code bash> 
-svn log --revision r101 --diff 
-</code> 
- 
----- 
  • linux_wiki/svn.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)