SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Code Review On GitHub
                 Intermediate training
                     jslee 2011/11/25




13年2月17⽇日星期⽇日
Integration-Manager Workflow




13年2月17⽇日星期⽇日
keep code up to date
    •   git remote add delta-cloud
    •   git fetch delta-cloud
    •   * [new branch]   develop   -> delta-cloud/develop
    •   * [new branch]   master    -> delta-cloud/master

    •   git diff master..delta-cloud/master
    •   git merge delta-cloud/master
    •   -----------------------------------------------
    •   以上同等於
    •   git pull delta-cloud develop:develop




13年2月17⽇日星期⽇日
git branch




13年2月17⽇日星期⽇日
git branch




13年2月17⽇日星期⽇日
git checkout testing




13年2月17⽇日星期⽇日
git commit (on testing)




13年2月17⽇日星期⽇日
git commit (on testing)




13年2月17⽇日星期⽇日
git checkout master




13年2月17⽇日星期⽇日
git commit (on master)




13年2月17⽇日星期⽇日
master / develop




13年2月17⽇日星期⽇日
Master is

       each time when changes are merged back
       into master, this is a new production
       release by definition. We tend to be very
       strict at this, so that theoretically, we could
       use a Git hook script to automatically build
       and roll-out our software to our production
       servers everytime there was a commit
       on master.


13年2月17⽇日星期⽇日
develop is
    • code for Next release




13年2月17⽇日星期⽇日
Feature branch




13年2月17⽇日星期⽇日
Feature branch
    • 從develop 分⽀支出來實驗性質的 branch
    • 完成後會被回develop

    • 開始:develop
    • 結束:develop




13年2月17⽇日星期⽇日
Release branches
    • 從develop 分⽀支出來 ready for release的
      branch
    • 只能在上⾯面commit bug fix
    • release 成功併回master/ 失敗繼續回
      develop
    • 開始:develop
    • 結束:develop or master



13年2月17⽇日星期⽇日
Hotfix branches




13年2月17⽇日星期⽇日
Hotfix branches
    • 從master 分⽀支出來,為的是要修正master
      上必須要⽴立刻修復的bug
    • 結束merge 回master,並為master加上tag新
      版本

    • 開始:master
    • 結束:develop and master



13年2月17⽇日星期⽇日
git flow




13年2月17⽇日星期⽇日
Q1: 有哪些branch從develop分⽀支出
                來?




13年2月17⽇日星期⽇日
Q2: 有哪些branch可以合併回
                  master?




13年2月17⽇日星期⽇日
Q3:不知道要放哪裡的code 要放在
              哪裡?




13年2月17⽇日星期⽇日
實例




13年2月17⽇日星期⽇日
tool
    • https://github.com/jsleetw/gitflow




13年2月17⽇日星期⽇日

Contenu connexe

Tendances

Git and git hub
Git and git hubGit and git hub
Git and git hub唯 李
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshellNelson Tai
 
電子內容管理 使用Git 與 github 2
電子內容管理   使用Git 與 github 2電子內容管理   使用Git 與 github 2
電子內容管理 使用Git 與 github 2Alan Tsai
 
你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事Mu Chun Wang
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作奕浦 郭
 
工程師必備第一工具 - Git
工程師必備第一工具 - Git工程師必備第一工具 - Git
工程師必備第一工具 - GitAlan Tsai
 
Git基礎介紹
Git基礎介紹Git基礎介紹
Git基礎介紹Max Ma
 
Funliday 新創生活甘苦談
Funliday 新創生活甘苦談Funliday 新創生活甘苦談
Funliday 新創生活甘苦談Mu Chun Wang
 
初心者 Git 上手攻略
初心者 Git 上手攻略初心者 Git 上手攻略
初心者 Git 上手攻略Lucien Lee
 
版本控制 使用Git & git hub
版本控制   使用Git & git hub版本控制   使用Git & git hub
版本控制 使用Git & git hub維佋 唐
 
A successful git branching model 導讀
A successful git branching model 導讀A successful git branching model 導讀
A successful git branching model 導讀Wen Liao
 
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境均民 戴
 
Git 程式碼版本控制軟體介紹
Git 程式碼版本控制軟體介紹Git 程式碼版本控制軟體介紹
Git 程式碼版本控制軟體介紹PingLun Liao
 
Git & git flow
Git & git flowGit & git flow
Git & git flowAmo Wu
 
git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用Will Huang
 
Git and Github basic with SourceTree
Git and Github basic with SourceTreeGit and Github basic with SourceTree
Git and Github basic with SourceTreeChu-Siang Lai
 
Ian 20150515 grunt
Ian 20150515 gruntIan 20150515 grunt
Ian 20150515 gruntLearningTech
 

Tendances (20)

Git and git hub
Git and git hubGit and git hub
Git and git hub
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
電子內容管理 使用Git 與 github 2
電子內容管理   使用Git 與 github 2電子內容管理   使用Git 與 github 2
電子內容管理 使用Git 與 github 2
 
你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作
 
工程師必備第一工具 - Git
工程師必備第一工具 - Git工程師必備第一工具 - Git
工程師必備第一工具 - Git
 
Git基礎介紹
Git基礎介紹Git基礎介紹
Git基礎介紹
 
Git教學
Git教學Git教學
Git教學
 
Funliday 新創生活甘苦談
Funliday 新創生活甘苦談Funliday 新創生活甘苦談
Funliday 新創生活甘苦談
 
初心者 Git 上手攻略
初心者 Git 上手攻略初心者 Git 上手攻略
初心者 Git 上手攻略
 
Git Tutorial 教學
Git Tutorial 教學Git Tutorial 教學
Git Tutorial 教學
 
版本控制 使用Git & git hub
版本控制   使用Git & git hub版本控制   使用Git & git hub
版本控制 使用Git & git hub
 
A successful git branching model 導讀
A successful git branching model 導讀A successful git branching model 導讀
A successful git branching model 導讀
 
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
 
Git 程式碼版本控制軟體介紹
Git 程式碼版本控制軟體介紹Git 程式碼版本控制軟體介紹
Git 程式碼版本控制軟體介紹
 
Git & git flow
Git & git flowGit & git flow
Git & git flow
 
Cocoapods
CocoapodsCocoapods
Cocoapods
 
git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用
 
Git and Github basic with SourceTree
Git and Github basic with SourceTreeGit and Github basic with SourceTree
Git and Github basic with SourceTree
 
Ian 20150515 grunt
Ian 20150515 gruntIan 20150515 grunt
Ian 20150515 grunt
 

En vedette

Python coding style guild 19 Langue Rule 17 Style Rule
Python coding style guild 19 Langue Rule 17 Style RulePython coding style guild 19 Langue Rule 17 Style Rule
Python coding style guild 19 Langue Rule 17 Style RuleJS Lee
 
Essential TDD @ pycontw2016
Essential TDD @ pycontw2016Essential TDD @ pycontw2016
Essential TDD @ pycontw2016Chun-Yu Tseng
 
Python coding standards
Python coding standardsPython coding standards
Python coding standardsSharad Singla
 
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...P3 InfoTech Solutions Pvt. Ltd.
 
Naming Convention in Python
Naming Convention in PythonNaming Convention in Python
Naming Convention in PythonTzu-ping Chung
 
Onos sdn ip 建置之路 20160522
Onos sdn ip 建置之路 20160522Onos sdn ip 建置之路 20160522
Onos sdn ip 建置之路 20160522Fei Ji Siao
 

En vedette (7)

Python coding style guild 19 Langue Rule 17 Style Rule
Python coding style guild 19 Langue Rule 17 Style RulePython coding style guild 19 Langue Rule 17 Style Rule
Python coding style guild 19 Langue Rule 17 Style Rule
 
Essential TDD @ pycontw2016
Essential TDD @ pycontw2016Essential TDD @ pycontw2016
Essential TDD @ pycontw2016
 
Python coding standards
Python coding standardsPython coding standards
Python coding standards
 
PEP 8
PEP 8PEP 8
PEP 8
 
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...
Python Programming Essentials - M19 - Namespaces, Global Variables and Docstr...
 
Naming Convention in Python
Naming Convention in PythonNaming Convention in Python
Naming Convention in Python
 
Onos sdn ip 建置之路 20160522
Onos sdn ip 建置之路 20160522Onos sdn ip 建置之路 20160522
Onos sdn ip 建置之路 20160522
 

Similaire à Code review on github training ( intermediate )

Git flow
Git flowGit flow
Git flowshaokun
 
Intro to Git 投影片
Intro to Git 投影片Intro to Git 投影片
Intro to Git 投影片Tony Yeh
 
Git+使用教程
Git+使用教程Git+使用教程
Git+使用教程gemron
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Wen-Tien Chang
 
Git flow 與團隊合作
Git flow 與團隊合作Git flow 與團隊合作
Git flow 與團隊合作Bo-Yi Wu
 
Git basis - usage
Git basis - usageGit basis - usage
Git basis - usageEason Cao
 
CICD Workshop 20180922
CICD Workshop 20180922CICD Workshop 20180922
CICD Workshop 20180922Earou Huang
 
Continuous Delivery Workshop with Ansible x GitLab CI (5th)
 Continuous Delivery Workshop with Ansible x GitLab CI (5th) Continuous Delivery Workshop with Ansible x GitLab CI (5th)
Continuous Delivery Workshop with Ansible x GitLab CI (5th)Chu-Siang Lai
 
COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報Bachue Zhou
 
twMVC#43 Visual Studio 2022 新功能拆解
twMVC#43 Visual Studio 2022 新功能拆解twMVC#43 Visual Studio 2022 新功能拆解
twMVC#43 Visual Studio 2022 新功能拆解twMVC
 
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)Continuous Delivery Workshop with Ansible x GitLab CI (3rd)
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)Chu-Siang Lai
 
Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)flylon
 
如何與全世界分享你的 Library
如何與全世界分享你的 Library如何與全世界分享你的 Library
如何與全世界分享你的 LibraryMu Chun Wang
 
Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Cloud Tu
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceAlex Su
 
Git 使用介绍
Git 使用介绍Git 使用介绍
Git 使用介绍medcl
 
如何與 Git 優雅地在樹上唱歌
如何與 Git 優雅地在樹上唱歌如何與 Git 優雅地在樹上唱歌
如何與 Git 優雅地在樹上唱歌Mu Chun Wang
 

Similaire à Code review on github training ( intermediate ) (20)

Git flow
Git flowGit flow
Git flow
 
Git入門介紹
Git入門介紹Git入門介紹
Git入門介紹
 
Intro to Git 投影片
Intro to Git 投影片Intro to Git 投影片
Intro to Git 投影片
 
Git+使用教程
Git+使用教程Git+使用教程
Git+使用教程
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀
 
Git=geek?
Git=geek?Git=geek?
Git=geek?
 
Git 經驗分享
Git 經驗分享Git 經驗分享
Git 經驗分享
 
Git flow 與團隊合作
Git flow 與團隊合作Git flow 與團隊合作
Git flow 與團隊合作
 
Git basis - usage
Git basis - usageGit basis - usage
Git basis - usage
 
CICD Workshop 20180922
CICD Workshop 20180922CICD Workshop 20180922
CICD Workshop 20180922
 
Continuous Delivery Workshop with Ansible x GitLab CI (5th)
 Continuous Delivery Workshop with Ansible x GitLab CI (5th) Continuous Delivery Workshop with Ansible x GitLab CI (5th)
Continuous Delivery Workshop with Ansible x GitLab CI (5th)
 
COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報
 
twMVC#43 Visual Studio 2022 新功能拆解
twMVC#43 Visual Studio 2022 新功能拆解twMVC#43 Visual Studio 2022 新功能拆解
twMVC#43 Visual Studio 2022 新功能拆解
 
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)Continuous Delivery Workshop with Ansible x GitLab CI (3rd)
Continuous Delivery Workshop with Ansible x GitLab CI (3rd)
 
Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)
 
如何與全世界分享你的 Library
如何與全世界分享你的 Library如何與全世界分享你的 Library
如何與全世界分享你的 Library
 
Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B service
 
Git 使用介绍
Git 使用介绍Git 使用介绍
Git 使用介绍
 
如何與 Git 優雅地在樹上唱歌
如何與 Git 優雅地在樹上唱歌如何與 Git 優雅地在樹上唱歌
如何與 Git 優雅地在樹上唱歌
 

Plus de JS Lee

Vip-check-in App 解說 中文版
Vip-check-in App 解說 中文版Vip-check-in App 解說 中文版
Vip-check-in App 解說 中文版JS Lee
 
Vip check in_app_tour
Vip check in_app_tourVip check in_app_tour
Vip check in_app_tourJS Lee
 
宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace宠幸 Pet's GPS Necklace
宠幸 Pet's GPS NecklaceJS Lee
 
Petneedme
PetneedmePetneedme
PetneedmeJS Lee
 
Fabric
FabricFabric
FabricJS Lee
 
Mysql cluster
Mysql clusterMysql cluster
Mysql clusterJS Lee
 
MVC in Codelgniter
MVC in Codelgniter MVC in Codelgniter
MVC in Codelgniter JS Lee
 

Plus de JS Lee (7)

Vip-check-in App 解說 中文版
Vip-check-in App 解說 中文版Vip-check-in App 解說 中文版
Vip-check-in App 解說 中文版
 
Vip check in_app_tour
Vip check in_app_tourVip check in_app_tour
Vip check in_app_tour
 
宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace
 
Petneedme
PetneedmePetneedme
Petneedme
 
Fabric
FabricFabric
Fabric
 
Mysql cluster
Mysql clusterMysql cluster
Mysql cluster
 
MVC in Codelgniter
MVC in Codelgniter MVC in Codelgniter
MVC in Codelgniter
 

Code review on github training ( intermediate )