Skip to Content
Git 團隊使用手冊
book

Git 團隊使用手冊

by Emma Jane Hogbin Westby
December 2016
Beginner to intermediate
352 pages
6h 10m
Chinese
GoTop Information, Inc.
Content preview from Git 團隊使用手冊
有效的作業程序
|
67
2. 從本機複本的
develop
分支建立新的分支。
3. 開始處理工單,使用重設基線維持工單分支與最新狀況一致,所有的記錄訊息都以
中括號標記的工單號碼開始([#1234]),或是關鍵字「Resolves」加上工單號碼:
Resolves #1234
4. 執行程式碼相關的測試以找出所有的打字錯誤與基本錯誤,這個步驟可能還包括執
行拼字檢查以及程式語言的語法檢查(
linting
)。對於測試驅動的環境,當然會有額
外需要執行的測試。
5. 將分支推送到程式碼代管儲存庫,這能夠作為備份,千萬不要跳過這個步驟。
6. 處理完工單之後,確保分支與
develop
的最新狀態一致,接著將程式碼上傳到程式碼
代管系統,將工單追蹤系統中的工單狀態更改為「需要測試」(Needs Testing)。
如果需要人工審核,又沒有一系列的自動化測試,審核者就必須執行以下步驟:
1. 根據工單原始的描述檢視成果,維持成果的清晰明確以及測試步驟淺顯易懂是程式
設計師的責任,必要的話將工單送回給開發人員進行任何必要的更正,或是解決任
何與
develop
分支不一致的狀況。
2. 將工單分支合併到
develop
分支,如果沒有任何合併衝突,就將更新後的分支推送到
中央儲存庫。
3. 假設沒有任何迴歸錯誤(regression),審核者就可以關閉工單,通知開發人員他∕
她所負責的工單已經納入主分支,開發人員與審核者都可以刪除各自工單分支的本
機複本。由於兩者都為處理清除狀態(cleanup mode),審核者應該要刪除工單分支 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

React: Up & Running, 2nd Edition

React: Up & Running, 2nd Edition

Stoyan Stefanov

Publisher Resources

ISBN: 9789864762453