Code review on github training ( beginner )
Transcript of Code review on github training ( beginner )
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://[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⽇日星期⽇日
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://[email protected]/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⽇日星期⽇日