原始碼版本控制的幾條簡單規則
給新人同事的建議。貼過來挨磚。
We use Subversion.
Good process:
1. Get up-to-date
2. Build
3. Never work on broken build
4. Develop
5. Build
6. Local testing
7. Commit
8. Resolve conflicts immediately
update and commit:
- Get up-to-date before working on a file.
- Do not commit if code doesn't pass local testing or won't even compile.
- Immediately commit after completing a piece of functionality.
- One commit for one purpose. One purpose into one commit.
- Do not commit any artifacts auto-generated out of the building process(e.g. program binary).
comments:
- Make sure all commit contain comments.
- About comment convention, an example:
- New, Bug or Refactor should be the prefix. e.g. :
- New I20120305C032: Add a new control for DateofBirth.
- Bug I20120307D021: Fix save scan result will quit the application bug.
- Refactor: Extract the version check procedure into a new function.
tag and release:
- Create tag for release to customer.
- Release program file(binary) backup on server with the name has tag name (or SVN revision) in it.
相關文章
- 語義化版本 2.0.0 - 版本控制規則
- 郵箱 郵政編碼 等幾個簡單的 正則 表示式的幾個例子?
- 【原始碼解析】AsyncTask的用法與規則原始碼
- 用 Java 構建簡單的規則引擎Java
- 直播app系統原始碼,簡單易上手的進度條APP原始碼
- 實現一個簡單版本的vue及原始碼解析(二)Vue原始碼
- 實現一個簡單版本的Vue及原始碼解析(一)Vue原始碼
- 用幾條規則解釋關於js原型的所有問題JS原型
- Java中最流行的幾種業務規則引擎簡介Java
- 求生之路:博士生涯的17條簡單生存法則
- 撰寫論文的十個簡單規則 | PLOS
- Codd的ER模型12條規則模型
- 高效編寫Dockerfile的幾條準則Docker
- 開發60條規則
- 谷歌機器學習規則要點簡析:43條黃金法則谷歌機器學習
- j-easy/easy-rules: Java簡單的規則引擎Java
- MediaScanner原始碼簡單分析原始碼
- [譯] 設計研究的 9 條規則
- 科學軟體十條簡單程式設計原則程式設計
- SVN原始碼版本控制系統平臺的搭建及使用原始碼
- Vue原始碼簡析(版本vue-2.4.4)Vue原始碼
- 簡單分析執行緒獲取ReentrantReadWriteLock 讀鎖的規則執行緒
- 建立最簡單的物件(c 原始碼)物件原始碼
- Spring Boot中實現規則引擎原始碼教程Spring Boot原始碼
- sentinel流控規則校驗之原始碼分析原始碼
- 20條IPTables防火牆規則用法!防火牆
- 網站效能優化:雅虎35條軍規及其可測的23條規則網站優化
- 如何編寫一個簡單但強大的規則引擎? – maxant
- 澳洲實施無人機新規,規則變得更為簡單無人機
- Drools規則引擎簡介
- sql改寫優化:簡單規則重組實現SQL優化
- 解決問題的三條規則 | Yonatan Zunger
- Java 8 ArrayList 原始碼簡單分析Java原始碼
- 直播短視訊原始碼要如何開發?簡單幾步教你快速開發!原始碼
- Protobuf編碼規則
- 簡單進度條
- Promise 原始碼:實現一個簡單的 PromisePromise原始碼
- 一個簡單案例的Vue2.0原始碼Vue原始碼
- 手機直播原始碼,Android 簡單的彈框原始碼Android