Code review on github training ( beginner )

20
Code Review On GitHub Beginner training jslee 2011/11/18 13217星期

Transcript of Code review on github training ( beginner )

Page 1: Code review on github training ( beginner )

Code Review On GitHub Beginner training

jslee 2011/11/18

13年2月17⽇日星期⽇日

Page 2: Code review on github training ( beginner )

Centralized Workflow

13年2月17⽇日星期⽇日

Page 3: Code review on github training ( beginner )

Integration-Manager Workflow

13年2月17⽇日星期⽇日

Page 4: Code review on github training ( beginner )

實習時間 (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⽇日星期⽇日

Page 5: Code review on github training ( beginner )

環境設定• cp /home/user/.bashrc ./• source .bashrc• git config --global user.name “github帳號“• git config --global user.email “github email“

13年2月17⽇日星期⽇日

Page 6: Code review on github training ( beginner )

fork

13年2月17⽇日星期⽇日

Page 7: Code review on github training ( beginner )

git clone

13年2月17⽇日星期⽇日

Page 8: Code review on github training ( beginner )

git clone• git clone https://[email protected]/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⽇日星期⽇日

Page 9: Code review on github training ( beginner )

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⽇日星期⽇日

Page 10: Code review on github training ( beginner )

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⽇日星期⽇日

Page 11: Code review on github training ( beginner )

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⽇日星期⽇日

Page 12: Code review on github training ( beginner )

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://[email protected]/jsleetw/github_training.git• aa78456..07d4d4b develop -> develop

13年2月17⽇日星期⽇日

Page 13: Code review on github training ( beginner )

pull request(1)

13年2月17⽇日星期⽇日

Page 14: Code review on github training ( beginner )

pull request(2)

13年2月17⽇日星期⽇日

Page 15: Code review on github training ( beginner )

pull request(3)

13年2月17⽇日星期⽇日

Page 16: Code review on github training ( beginner )

pull request(4)

13年2月17⽇日星期⽇日

Page 17: Code review on github training ( beginner )

pull request(5)

13年2月17⽇日星期⽇日

Page 18: Code review on github training ( beginner )

pull request(6)

13年2月17⽇日星期⽇日

Page 19: Code review on github training ( beginner )

+1

13年2月17⽇日星期⽇日

Page 20: Code review on github training ( beginner )

finish

13年2月17⽇日星期⽇日