Top Banner
Git Flow 資資資 A - 資資 102-1 資資資資資資資資資資資 07/05/2022
14

Git Flow 管理

Apr 15, 2017

Download

Technology

Pu Lee
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Git Flow 管理

05/02/2023

Git Flow資工二 A - 李樸

102-1 計中網路系統組工讀分享

Page 2: Git Flow 管理
Page 3: Git Flow 管理

Git 簡介• “ 程式專案”版本管理的工具• Branch• Github 團隊開發利器

Page 4: Git Flow 管理

Git 簡介 - 版本管理• 記錄不同時空下的 code• 回到過去

Page 5: Git Flow 管理

Git 簡介 -Branch• 同時開發不同功能• 團隊開發

Page 6: Git Flow 管理

所以到底什麼是 Git?• 跨平台分布式版本控制/軟體配置管理軟體• 下指令• 可上傳到網路,由團隊、社群共同開發

Page 7: Git Flow 管理

雲端平台• 自己架 Git Server• 使用線上源碼存取服務• Bitbucket• GitHub

Page 9: Git Flow 管理

Git Flow 簡介• A successful Git branching model• 兩個主要分支• 三個支援性分支

Page 10: Git Flow 管理

分支介紹• 主要分支• Master• Develop

• 支援性分支• Feature branches• Release branches• Hotfix branches

Page 11: Git Flow 管理

整合工具 gitflow• 安裝 (on Debian-based Linux)• $ apt-get install git-flow

• 初始設定• $ git flow init

Page 12: Git Flow 管理

開發㳘程• 確定要作的事(功能)後,先開功能 Branch(feature/hotfix/

release)• $ git flow feature start some_awesome_feature

• 開發完成後自動合併• $ git flow feature finish some_awesome_feature

• 㳘程圖

Page 13: Git Flow 管理

GitFlow 使用心得• 可以簡化指令• 提供一套成熟的 Branch 模型• 對於舊的 GitRepository 引入 GitFlow 工具,衝突?

Page 14: Git Flow 管理

參考資料• http://hades.name/blog/tag/branches/• http://danielkummer.github.io/git-flow-cheatsheet/