osvn client 簡介
DESCRIPTION
svn introduce by caton chuangTRANSCRIPT
![Page 1: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/1.jpg)
報告人:莊嘉峻2012.02.15
![Page 2: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/2.jpg)
Overview 安裝 server 安裝 client 端 簡單操作 本機建立 SVN 備註
![Page 3: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/3.jpg)
Subversion 是一個自由 / 開放源碼的版本控制系統
他能幫助我們什麼? 紀錄版本:
上傳人、時間、附註 版本比對 回朔版本
![Page 4: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/4.jpg)
Windows 環境下可以使用 Visual SVN Server
架在 Apache 上,先安裝 Apache 後,在下載 SubVersion 安裝
![Page 5: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/5.jpg)
SubVersion 有結合了幾個常見的 IDE ,如 Eclipse. NetBeans, Visual Stdio.
![Page 6: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/6.jpg)
視覺化的操作介面 若非使用 Visual SVN 則也可以在命令提示
字元下輸入指令來操作
![Page 7: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/7.jpg)
Trunk 主幹,只有一份一直在更新
Branches 分支,某特定版本,如針對不同作業系統的環境,
Windows 和 Mac 就是不同的 Branch Tag
可以當作 release 的版本,通常不會在更新如release V1.1 是一個 tag, V1.2 是另一個 tag
![Page 8: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/8.jpg)
建立專案的流程,範例名稱為 TestProject
![Page 9: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/9.jpg)
有許多種 Client 端軟體,可參考 Comparison of Subversion clients by WIKI
以 Windows base 而言常用的是 Tortoise SVN 載點
http://tortoisesvn.tigris.org/
參考 基本上 按下一步同意就可以
![Page 10: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/10.jpg)
建立 SVN 要用的檔案夾,右鍵 選 SVN Checkout
![Page 11: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/11.jpg)
設定 URL 點選 ‘…’紅色區塊地方可以看到整個 SVN
路徑 第一次要依據帳號密碼登入
![Page 12: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/12.jpg)
依權限看到 SVN server 上所有的檔案
![Page 13: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/13.jpg)
![Page 14: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/14.jpg)
可以看 Log 來決定要 匯入的版本 若要最新的版本就選 HEAD reversion 點選 ok 開始匯入
![Page 15: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/15.jpg)
資料夾右鍵, Show log
![Page 16: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/16.jpg)
包含 版本、事件、更新者、時間和附註
![Page 17: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/17.jpg)
資料夾右鍵, SVN Update
![Page 18: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/18.jpg)
資料夾右鍵, SVN Commit
![Page 19: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/19.jpg)
![Page 20: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/20.jpg)
![Page 21: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/21.jpg)
選擇檔案右鍵, Diff with Previous vision 文字檔才可以比對 ( 或 word, excel 等有比
對機制的軟體可以套用 )
![Page 22: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/22.jpg)
左: 舊版本 右 : 新版本 黃色是更新的地方,橘色是刪除的地方
![Page 23: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/23.jpg)
第一次使用要輸入帳號密碼 上傳時 Message 最好定義好格式,方便比對
Ex, 專案名稱: version X.X , Comment: 實例, DataServer: Version 1.0,Initial
建議不要在 SVN 資料夾直接修改, 可能修改到一半的資料按下 SVN update 就要重做
先 Update 在 Commit 上傳前先確認是否由最新版本修改 多人修同一份文件時
![Page 24: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/24.jpg)
![Page 25: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/25.jpg)
可點選 show log 選擇所要得版本,或直接輸入版本號
![Page 26: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/26.jpg)
文件
userA userB
User A , User B 下載同一份文件
文件
userA userB
User A , User B 各自修改後上傳
1 2
文件
userA userB
User B 先上傳, A 上傳 發生錯誤
3
!
4
![Page 27: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/27.jpg)
選擇正確的更新的版本取代原本的檔案後,在commit 上去
其他方式可參考 SVNConflictOverview
![Page 28: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/28.jpg)
分支版本或快照
![Page 29: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/29.jpg)
路徑,在此設新資料夾
訊息
選擇版本
![Page 30: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/30.jpg)
主線的資料併到支線
支線的資料併到主線
合併不同的支線
![Page 31: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/31.jpg)
選擇主線位置,以及版本
![Page 32: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/32.jpg)
合併設定,可以先按 Test ,測試合併是否順利
![Page 33: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/33.jpg)
衝突解決選項
![Page 34: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/34.jpg)
安裝完 Tortoise SVN 後, 可以簡單的自行在本機作版本控制
![Page 35: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/35.jpg)
建立一資料夾,設定 _SVN_ROOT
![Page 36: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/36.jpg)
設定資料夾屬性 ,Create repository here
![Page 37: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/37.jpg)
新增資料夾 SVNClient, 作 client 端
![Page 38: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/38.jpg)
點選 SVN checkout ,和 SVN server 連結
![Page 39: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/39.jpg)
選擇本地端位置,按 ok 即可
![Page 40: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/40.jpg)
[1] Version Control with Subversion [2] [程式]版本控制工具TortoiseSVN初體驗 [3] 講解 Subversion 分支與合併:以
TortoiseSVN 為例
![Page 41: Osvn client 簡介](https://reader037.vdocuments.pub/reader037/viewer/2022102602/54b67eed4a795962088b46ec/html5/thumbnails/41.jpg)