狠狠撸

狠狠撸Share a Scribd company logo
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?日星期?日

More Related Content

What's hot (20)

電子內容管理 使用Git 與 github 2
電子內容管理   使用Git 與 github 2電子內容管理   使用Git 與 github 2
電子內容管理 使用Git 與 github 2
Alan Tsai
?
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作
奕浦 郭
?
工程師必備第一工具 - Git
工程師必備第一工具 - Git工程師必備第一工具 - Git
工程師必備第一工具 - Git
Alan Tsai
?
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
Nelson Tai
?
你毕业后要任职的软体业到底都在做些什麼事
你毕业后要任职的软体业到底都在做些什麼事你毕业后要任职的软体业到底都在做些什麼事
你毕业后要任职的软体业到底都在做些什麼事
Mu Chun Wang
?
Git and git hub
Git and git hubGit and git hub
Git and git hub
唯 李
?
骋颈迟基础介绍
骋颈迟基础介绍骋颈迟基础介绍
骋颈迟基础介绍
Max Ma
?
初心者 Git 上手攻略
初心者 Git 上手攻略初心者 Git 上手攻略
初心者 Git 上手攻略
Lucien Lee
?
骋颈迟教学
骋颈迟教学骋颈迟教学
骋颈迟教学
Sitg Yao
?
版本控制 使用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 grunt
LearningTech
?
git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用git merge 與 rebase 的觀念與實務應用
git merge 與 rebase 的觀念與實務應用
Will Huang
?
骋颈迟由超浅入超深
骋颈迟由超浅入超深骋颈迟由超浅入超深
骋颈迟由超浅入超深
羊 小咩 (lamb-mei)
?
Git and Github basic with SourceTree
Git and Github basic with SourceTreeGit and Github basic with SourceTree
Git and Github basic with SourceTree
Chu-Siang Lai
?
電子內容管理 使用Git 與 github 2
電子內容管理   使用Git 與 github 2電子內容管理   使用Git 與 github 2
電子內容管理 使用Git 與 github 2
Alan Tsai
?
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作
奕浦 郭
?
工程師必備第一工具 - Git
工程師必備第一工具 - Git工程師必備第一工具 - Git
工程師必備第一工具 - Git
Alan Tsai
?
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
Nelson Tai
?
你毕业后要任职的软体业到底都在做些什麼事
你毕业后要任职的软体业到底都在做些什麼事你毕业后要任职的软体业到底都在做些什麼事
你毕业后要任职的软体业到底都在做些什麼事
Mu Chun Wang
?
Git and git hub
Git and git hubGit and git hub
Git and git hub
唯 李
?
骋颈迟基础介绍
骋颈迟基础介绍骋颈迟基础介绍
骋颈迟基础介绍
Max Ma
?
初心者 Git 上手攻略
初心者 Git 上手攻略初心者 Git 上手攻略
初心者 Git 上手攻略
Lucien Lee
?
骋颈迟教学
骋颈迟教学骋颈迟教学
骋颈迟教学
Sitg Yao
?
版本控制 使用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 練習環境
均民 戴
?
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 SourceTree
Chu-Siang Lai
?

Similar to Code review on github training ( beginner ) (20)

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 - usage
Eason 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 | WeiYuan
Wei-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 git
Bo-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 introduction
mythnc
?
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用
勇浩 赖
?
Example my hdl
Example my hdlExample my hdl
Example my hdl
sean chen
?
前端也能变全端
前端也能变全端前端也能变全端
前端也能变全端
ericpi Bi
?
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用
Philip Zheng
?
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
Drake Huang
?
骋颈迟丑耻产介绍
骋颈迟丑耻产介绍骋颈迟丑耻产介绍
骋颈迟丑耻产介绍
Radian Jheng
?
骋颈迟基础
骋颈迟基础骋颈迟基础
骋颈迟基础
lai dingqing
?
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 - usage
Eason Cao
?
COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報COSCUP 2015 開源之道-Git工作坊教學簡報
COSCUP 2015 開源之道-Git工作坊教學簡報
Bachue Zhou
?
Learning to Use Git | WeiYuan
Learning to Use Git | WeiYuanLearning to Use Git | WeiYuan
Learning to Use Git | WeiYuan
Wei-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 git
Bo-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 introduction
mythnc
?
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用
勇浩 赖
?
前端也能变全端
前端也能变全端前端也能变全端
前端也能变全端
ericpi Bi
?
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用
Philip Zheng
?
骋颈迟丑耻产介绍
骋颈迟丑耻产介绍骋颈迟丑耻产介绍
骋颈迟丑耻产介绍
Radian Jheng
?

More from JS Lee (8)

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_tour
JS Lee
?
宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace
JS Lee
?
Petneedme
PetneedmePetneedme
Petneedme
JS Lee
?
Fabric
FabricFabric
Fabric
JS 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 Rule
JS Lee
?
Mysql cluster
Mysql clusterMysql cluster
Mysql cluster
JS Lee
?
MVC in Codelgniter
MVC in Codelgniter MVC in Codelgniter
MVC in Codelgniter
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_tour
JS Lee
?
宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace宠幸 Pet's GPS Necklace
宠幸 Pet's GPS Necklace
JS Lee
?
Petneedme
PetneedmePetneedme
Petneedme
JS 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 Rule
JS Lee
?
Mysql cluster
Mysql clusterMysql cluster
Mysql cluster
JS Lee
?
MVC in Codelgniter
MVC in Codelgniter MVC in Codelgniter
MVC in Codelgniter
JS Lee
?

Code review on github training ( beginner )