2012-01-20

SVN Commit SOP

Commands:
  1. svn checkout(co)-> check out project files from SVN server
  2. svn export -> check out project files from SVN server with out SVN files
  3. svn add -> add a file into the commit-list
  4. svn del -> del a file into the commit-list
  5. svn commit -> commit current commit-list

Rules:
1. 若有新增任何檔案, 用svn add將該檔案加入list中.
2. 關於先前已加入list中的檔案, 做了改動並不需要再svn add一次, 系統會自動偵測.
3. 用svn del去刪除任何不再需要的檔案.
4. 執行svn commit後, svn add與del所做的變動才會commit到server上.
5. 重新check out一份新的檔案再commit, 為最保險且不容易失敗的作法.

Steps:
1. svn add <file> (此步驟非必要)
2. svn del <file> (此步驟非必要)
3. svn commit

P.S.
  1. After committing, please checkout again and check if the latest source code in server can competely be built without errors.
  2. DO NOT commit unnecessary files to the server, such as temp files, or the files produced in compiling process.