View
939
Download
0
Category
Preview:
Citation preview
Git ⼯工作流程蔡 佳 緯
1.檔案遺失 2.檔案被修改⽽而不⾃自知 3.為每個⼈人所做的事情留下紀錄 4.⾯面對善變的需求
為何需要版本控制系統?
常⾒見控管軟體⼯工作流程
中央式
Repository
Develop
Develop Develop
Develop
Develop Develop
階級式
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Fork
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Commit
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Pull Request
https://www.flickr.com/photos/appleboy/5488984404
Master - 穩定版本 Develop - 開發中版本
Feature - 正在的新功能 Release - 修正 develop bug Hotfix - 緊急修正 master bug
Commit
• 標題和內容空⼀一⾏行
• 標題不超過 50 個字元
• 標題開頭⼤大寫字⺟母
• 標題不要加上句號
• 標題盡量使⽤用可以表達的字眼(不要帶髒字)
• 內容⼀一⾏行最多為 72 個字元
• 內容盡量解釋為什麼這麼做?怎麼做的?
公司使⽤用 SVN
• git svn clone -r HEAD {Repo URL}
• git svn rebase
• git svn dcommit
參考資料
• https://git-scm.com/book
• https://ihower.tw/blog/archives/5140
• http://chris.beams.io/posts/git-commit/
Recommended