Vous êtes sur la page 1sur 19

uslng ClLhub

Monday, 22 !uly 13
Lukasz kreczko - ClLhub 1
ClL 1uLorlals
1here are plenLy of Lhem onllne
hup://Lry.glLhub.lo/levels/1/challenges/1
hup://glL-scm.com/documenLauon
.
1hls ls noL one
Pere l wlll focus on:
WhaL do you need Lo know when worklng wlLh
glLhub
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 2
WhaL ls ClLhub?
Posung plauorm for glL reposlLorles
Soclal codlng
SupporL of 'forks' (more laLer)
SupporL for merglng of forks
Many hooks lnLo oLher servlces
Lwluer
Lxample of Lravls conunuous lnLegrauon laLer
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 3
Cemng sLarLed - 8eglsLer
CeL a ClLhub accounL: hups://glLhub.com/
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 4
Cemng sLarLed - Add ssh key
1hls ls very useful for laLer:
hups://glLhub.com/semngs/ssh

Monday, 22 !uly 13
Lukasz kreczko - ClLhub 3
Cemng sLarLed - CreaLe repo
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 6
Cemng sLarLed - AlmosL Lhere
CreaLe a reposlLory locally
And push lL up
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 7
WhaL lf you are noL worklng alone?
CreaLe a fork (or a dlerenL branch):
Work on lL
CreaLe pull requesL
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 8
ClLhub pull requesL
Asynchronous
no meeungs
noucauons
Lmall ls your lnLerface
Accesslble
ueslgners can evolve mockups and enure
workows
non-Lechnlcal sLa can add Lhelr Lwo cenLs
PlsLorlcal
ull requesLs can be experlmenLs
1ry someLhlng ouL, Lhrow lL away, reLaln a hlsLory
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 9
ClLhub pull requesL
1hls ls Lhe way code revlew ls done:
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 10
ClLhub pull requesL
Shows Lhe dl beLween forks
Allows for referenclng lssues (same for
commlLs)
Allows encourages for !"#$%##"&' &) $&!*
Shows LesL resulLs from Lravls-cl.org
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 11
Worklng wlLh oLhers
LeL's say we have pro[ecLs wlLh conLrlbuuon
from muluple people
1here are a few Lhlngs Lo be aware of:
Changes/pull requesLs whlle you've done your
changes
keeplng up-Lo-daLe wlLh maln repo (even lf lL only
lncludes your own pull requesLs
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 12
Messy hlsLory
Aer a pull requesL has been merged lL creaLes a
new commlL ln Lhe maln reposlLory
lf Lhls ls noL Laken lnLo accounL lL can lead Lo a
messy or even broken reposlLory
1o avold Lhls:
'glL remoLe add upsLream <maln repo>'
'glL pull -rebase upsLream <branch>'
?our changes wlll be applled on Lop of Lhe
newesL code
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 13
1ravls-cl.org
Conunuous lnLegrauon
1esung your code +,, Lhe ume (well, every ume lL
changes)
?ou wanL Lo do Lhls lf you use code ln producuon
?ou !&'-. wanL Lo run LesLs by hand (people are
forgeuul)
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 14
1ravls-cl.org
lree servlce
lnLegraLed wlLh ClLhub
rovldes undersLandable feedback
rovldes logs
Can be slow
someumes
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 13
uppeL module wlLh Lravls
Addluonal les
.Lravls.yml (seLup + LesL) lnsLrucuons
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 16
1esLed for
each
envlronmenL
lndependenLly
uppeL module wlLh Lravls
Addluonal les
.gemle (ruby packages)
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 17
Summary
ClLhub ls a servlce provldlng
8eposlLory sLorage and web access
1lckeL sysLem (lssues)
merglng beLween branches/forks
ull requesLs for code revlews
keeplng Lrack of conLrlbuuons
And here a nlce example:
Pow ClLhub uses ClLhub Lo bulld ClLhub
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 18
/012345627
1hanks for llsLenlng.
Monday, 22 !uly 13
Lukasz kreczko - ClLhub 19

Vous aimerez peut-être aussi