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




13年2月17⽇日星期⽇日
Centralized Workflow




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




13年2月17⽇日星期⽇日
實習時間 (1hr)
    •   1.學會如何fork
    •   2.學會⽤用git clone
    •   3.學會⽤用git branch
    •   4.學會⽤用git merge
    •   5.學會⽤用git add / commit
    •   6.學會⽤用git push
    •   7.學會發pull request
    •   8.學會+1


13年2月17⽇日星期⽇日
環境設定
    •   cp /home/user/.bashrc ./
    •   source .bashrc
    •   git config --global user.name “github帳號“
    •   git config --global user.email “github email“




13年2月17⽇日星期⽇日
fork




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




13年2月17⽇日星期⽇日
git clone
    •   git clone https://jsleetw@github.com/jsleetw/github_training.git


    •   結果:
    •   Cloning into github_training...
    •   Password:
    •   remote: Counting objects: 3, done.
    •   remote: Total 3 (delta 0), reused 3 (delta 0)
    •   Unpacking objects: 100% (3/3), done.




13年2月17⽇日星期⽇日
git branch
    •   cd github_training/
    •   git checkout develop
    •   git branch feature/jsleetw_test
    •   git checkout feature/jsleetw_test
    •   結果:
    •   [~/github_training] (feature/jsleetw_test) 0h47m $ _




13年2月17⽇日星期⽇日
git add / commit
    •   touch jsleetw.py
    •   + print "hello world“
    •   git add jsleetw.py
    •   git commit -m "hello world from jsleetw“
    •   結果:
    •   [feature/jsleetw_test aa78456] hello world from jsleetw
    •    1 files changed, 1 insertions(+), 0 deletions(-)
    •   create mode 100644 jsleetw.py




13年2月17⽇日星期⽇日
git merge
    • git checkout develop
    • git merge feature/jsleetw_test
    • 結果:
    ·•   Updating	
 160c51f..aa78456
    ·•   Fast-forward
    ·•   	
 jsleetw.py	
 |	
 	
 	
 	
 1	
 +
    ·•   	
 1	
 files	
 changed,	
 1	
 insertions(+),	
 0	
 deletions(-)
    ·•   	
 create	
 mode	
 100644	
 jsleetw.py




13年2月17⽇日星期⽇日
git push
    •   git push origin develop:develop
    •   結果:
    •   Counting objects: 5, done.
    •   Delta compression using up to 2 threads.
    •   Compressing objects: 100% (2/2), done.
    •   Writing objects: 100% (3/3), 292 bytes, done.
    •   Total 3 (delta 0), reused 0 (delta 0)
    •   To https://jsleetw@github.com/jsleetw/github_training.git
    •     aa78456..07d4d4b develop -> develop




13年2月17⽇日星期⽇日
pull request(1)




13年2月17⽇日星期⽇日
pull request(2)




13年2月17⽇日星期⽇日
pull request(3)




13年2月17⽇日星期⽇日
pull request(4)




13年2月17⽇日星期⽇日
pull request(5)




13年2月17⽇日星期⽇日
pull request(6)




13年2月17⽇日星期⽇日
+1




13年2月17⽇日星期⽇日
finish




13年2月17⽇日星期⽇日

Contenu connexe

Tendances

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

Tendances (20)

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

Similaire à Code review on github training ( beginner )

Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)flylon
 
Git 使用介绍
Git 使用介绍Git 使用介绍
Git 使用介绍medcl
 
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
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Wen-Tien Chang
 
Git basis - usage
Git basis - usageGit basis - usage
Git basis - usageEason Cao
 
COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報Bachue Zhou
 
Learn git
Learn gitLearn git
Learn git甘 李
 
Learning to Use Git | WeiYuan
Learning to Use Git | WeiYuanLearning to Use Git | WeiYuan
Learning to Use Git | WeiYuanWei-Yuan Chang
 
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
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to gitBo-Yi Wu
 
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
 
Android 程式設計(4)
Android 程式設計(4)Android 程式設計(4)
Android 程式設計(4)Roy Wang
 
Git introduction
Git introductionGit introduction
Git introductionmythnc
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用勇浩 赖
 
Example my hdl
Example my hdlExample my hdl
Example my hdlsean chen
 
前端也能變全端
前端也能變全端前端也能變全端
前端也能變全端ericpi Bi
 
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用Philip Zheng
 

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

Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)
 
Git 使用介绍
Git 使用介绍Git 使用介绍
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 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀
 
Git basis - usage
Git basis - usageGit basis - usage
Git basis - usage
 
COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報
 
Learn git
Learn gitLearn git
Learn git
 
Learning to Use Git | WeiYuan
Learning to Use Git | WeiYuanLearning to Use Git | WeiYuan
Learning to Use Git | WeiYuan
 
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)
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
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)
 
Android 程式設計(4)
Android 程式設計(4)Android 程式設計(4)
Android 程式設計(4)
 
Git introduction
Git introductionGit introduction
Git introduction
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用
 
Example my hdl
Example my hdlExample my hdl
Example my hdl
 
前端也能變全端
前端也能變全端前端也能變全端
前端也能變全端
 
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
 
Github簡介
Github簡介Github簡介
Github簡介
 
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
 
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
 
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 (8)

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
 
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
 
Mysql cluster
Mysql clusterMysql cluster
Mysql cluster
 
MVC in Codelgniter
MVC in Codelgniter MVC in Codelgniter
MVC in Codelgniter
 

Code review on github training ( beginner )