Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:svn [2016/03/18 23:23] billdozor [SVN] |
linux_wiki:svn [2018/02/13 10:40] billdozor |
||
---|---|---|---|
Line 11: | Line 11: | ||
---- | ---- | ||
- | ====== | + | ====== |
+ | |||
+ | 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 | + | Make changes to a repo. |
- | + | ||
- | <code bash> | + | |
- | svn update | + | |
- | </ | + | |
---- | ---- | ||
- | ====== Commit ====== | + | ===== Update |
- | A commit saves changes | + | Update |
- | Commit command | ||
<code bash> | <code bash> | ||
- | svn commit -m "my changes description" | + | svn update |
</ | </ | ||
---- | ---- | ||
- | ====== Add File ====== | + | ===== Add File ===== |
Add a new file/ | Add a new file/ | ||
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. | ||
- Delete file via svn<code bash>svn delete mynewfile</ | - Delete file via svn<code bash>svn delete mynewfile</ | ||
- | - Commit the deletion to remove from the repo< | + | - Commit the deletion to remove from the repo< |
---- | ---- | ||
- | ====== 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: | ||
---- | ---- | ||
- | ====== | + | ===== Commit |
+ | |||
+ | A commit saves changes to the repo. | ||
+ | |||
+ | Commit command | ||
+ | <code bash> | ||
+ | svn commit -m "my changes description" | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Cleanup ===== | ||
+ | |||
+ | Keep your working directory clean by listing and/or removing untracked files. | ||
+ | |||
+ | List untracked files< | ||
+ | |||
+ | \\ | ||
+ | **WARNING**: | ||
+ | |||
+ | Remove untracked files< | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== 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: | ||
</ | </ | ||
- | Show the specifiers | + | 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. | ||
- | |||
<code bash> | <code bash> | ||
svn log PATH | svn log PATH | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | View diff of a specific logged revision | ||
+ | <code bash> | ||
+ | svn log --revision r101 --diff | ||
</ | </ | ||
---- | ---- | ||
+ |