[[linux_wiki:svn]]

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:svn [2017/11/08 19:47]
billdozor [Log]
linux_wiki:svn [2019/05/26 03:50] (current)
Line 11: Line 11:
 ---- ----
  
-====== ​Checkout ​======+====== ​Create ​====== 
 + 
 +Create a working directory space. 
 + 
 +---- 
 + 
 +===== Checkout Repo =====
  
 Checkout creates a local copy of the repo. Checkout creates a local copy of the repo.
Line 27: Line 33:
 ---- ----
  
-====== ​Update ​======+====== ​Modify ​======
  
-Update ​changes ​from the repo to your local copy. +Make changes to a repo.
- +
-<code bash> +
-svn update +
-</​code>​+
  
 ---- ----
  
-====== Commit ======+===== Update ​=====
  
-A commit saves changes ​to the repo.+Update ​changes ​from the repo to your local copy.
  
-Commit command 
 <code bash> <code bash>
-svn commit -m "my changes description"​+svn update
 </​code>​ </​code>​
  
 ---- ----
  
-====== Add File ======+===== Add File =====
  
 Add a new file/​directory to the repo. New file only gets pushed to the repo copy upon commit. Add a new file/​directory to the repo. New file only gets pushed to the repo copy upon commit.
Line 58: Line 59:
 ---- ----
  
-====== Delete File ======+===== Delete File =====
  
 Delete a file from the working copy. The file will be removed from the repo upon commit. Delete a file from the working copy. The file will be removed from the repo upon commit.
Line 67: Line 68:
 ---- ----
  
-====== Move File ======+===== Move File =====
  
 Move or rename a file. File is changed in the repo upon commit. Move or rename a file. File is changed in the repo upon commit.
Line 76: Line 77:
 ---- ----
  
-====== ​Diff ======+===== Commit ​===== 
 + 
 +A commit saves changes to the repo. 
 + 
 +Commit command 
 +<code bash> 
 +svn commit -m "my changes description"​ 
 +</​code>​ 
 + 
 +---- 
 + 
 +===== Cleanup ===== 
 + 
 +Keep your working directory clean by listing and/or removing untracked files. 
 + 
 +List untracked files<​code bash>svn status --no-ignore | grep '​^?'​ | awk '​{print $2}' | xargs -I{} ls -l '​{}'</​code>​ 
 + 
 +\\ 
 +**WARNING**:​ The following could remove work in progress! 
 + 
 +Remove untracked files<​code bash>svn status --no-ignore | grep '​^?'​ | awk '​{print $2}' | xargs -I{} rm -fv '​{}'</​code>​ 
 + 
 +---- 
 + 
 +====== Inspect ====== 
 + 
 +View status and logs. 
 + 
 +---- 
 + 
 +===== Diff =====
  
 Show the differences between your working copy and the repo copy. Show the differences between your working copy and the repo copy.
Line 86: Line 117:
 ---- ----
  
-====== Status ​======+===== Status =====
  
 Show the status of the file(s) in the working copy. Show the status of the file(s) in the working copy.
Line 94: Line 125:
 </​code>​ </​code>​
  
-Show the specifiers ​for various statuses+Show the character codes for various statuses
 <code bash> <code bash>
 svn help status svn help status
Line 101: Line 132:
 ---- ----
  
-====== Log ======+===== Log =====
  
 View logged commits. View logged commits.
Line 115: Line 146:
  
 ---- ----
 +
  • linux_wiki/svn.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)