$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
どうぶつと学ぶGitの考え方
Search
taniko
April 16, 2024
0
28
どうぶつと学ぶGitの考え方
taniko
April 16, 2024
Tweet
Share
More Decks by taniko
See All by taniko
SLOを考える
hrgruri
0
27
github.ioでブログを 公開しよう
hrgruri
2
3.4k
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.1k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
0
130
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
91
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
710
Why Our Code Smells
bkeepers
PRO
340
57k
First, design no harm
axbom
PRO
1
1.1k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
180
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
0
91
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
170
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
Thoughts on Productivity
jonyablonski
73
5k
Transcript
Author: taniko Ͳ͏ͿͭͱֶͿGitͷߟ͑ํ
GitͬͯԿͰ͔͢ʁ όʔδϣϯཧγεςϜͰ͢ɻ ར༻͢ΔͱԿ͕خ͍͠ͷͰ͔͢ʁ ηʔϒϙΠϯτ͕ͨ͘͞Μ࡞ΕͯɺϑΝΠϧͷมߋ͕ཧͰ͖Δ͠ɺ ෳਓͰඇಉظͰ։ൃ͕Ͱ͖ΔΑ
ηʔϒϙΠϯτʁ ͨͱ͑ɺ࡞ۀதͷมߋ͕ෆཁʹͳͬͨ࣌ɺ؆୯ʹΕΔΑ
ηʔϒ ηʔϒ ػೳA ػೳB ػೳBͳͷͰ͕͢ɺཁΒͳ͘ͳͬͪΌͬͨ ݱࡏ ͡Ό͋ػೳAͷ࣮ޙ·ͰΔͶ ػೳA ηʔϒ ηʔϒ
ηʔϒ ηʔϒ ݱࡏ
มߋ ϑΝΠϧA มߋ ϑΝΠϧB มߋ ϑΝΠϧC มߋ ϑΝΠϧD ػೳBͳͷͰ͕͢ɺཁΒͳ͘ͳͬͪΌͬͨ ϑΝΠϧAɺBɺCɺDͷͲͷ෦͕ػೳBʹؔ͢ΔΜ͚ͩͬʁ
ػೳAɺBΛ։ൃ
ηʔϒϙΠϯτΛ࡞ͬͯɺཧ͓ͯ͘͠ͱɺ؆୯ʹΕΔΜͩͶ ͦΕ͔ΒɺGitͰɺηʔϒϙΠϯτͷ͜ͱΛίϛοτ(Commit)ͱݴ͏Α ίϛοτͰϑΝΠϧཧ͕͘͢͠ͳΔͷɺΘ͔͚ͬͨͲɺ ෳਓͰඇಉظͰ։ൃ͕Ͱ͖ΔͬͯɺͲ͏͍͏ҙຯʁ ͦΕɺϒϥϯνػೳΛ͏ΜͩΑ
ϒϥϯνػೳͬͯͳʹʁ ֤ʑ͕࡞ۀ༻ͷۭؒΛ࡞ͯ͠ɺͦ͜Ͱ։ൃ͕Ͱ͖ΔΑ͏͢Δػೳ
ɺػೳAΛ୲͢ΔͶ ͡Ό͋ɺػೳB ػೳAϒϥϯν ػೳBϒϥϯν ϕʔεϒϥϯν
ϒϥϯνΛ࡞Δ͜ͱͰɺͦΕͧΕ͕࡞ۀͰ͖Δͷ͔͚ͬͨͲɺ Ͳ͏ͬͯ̍ͭʹ·ͱΊΔͷʁ ͦΕɺϚʔδ(merge)Λ͏ΜͩΑ
ػೳA͕ग़དྷͨ ͕ࠩେ͖͘ͳΔલʹɺ มߋΛऔΓࠐΜͰ͓͜͏ Ϛʔδ Ϛʔδ ϕʔεϒϥϯν
ϚʔδΛߦ͏ͱଞͷਓͷมߋ͕औΓࠐΊΔΜͩͶ Ͱɺಉ͡ϑΝΠϧΛมߋ͍ͯͨ͠߹ɺ ίϯϑϦΫτ(িಥ)͕ൃੜ͢Δ͜ͱ͕͋ΔΑ ͦΜͳ࣌ɺͲ͏͢Δͷʁ ؤுͬͯɺ͍͍ײ͡ʹࠩΛऔΓࠐΉʂ ͑ͬʁ ؤுΔʂʂ
มߋΛૹΓ߹͏ͷɺͲ͏͢Ε͍͍ͷʁ GitΛϗεςΟϯά͍ͯ͠ΔαʔϏεΛར༻͠Α͏ ϗεςΟϯά͍ͯ͠ΔαʔϏεʁ GitHubGitL a bͳͲ͕༗໊ͩΑ
Push Pull
ͦ͏͍͑ɺϕʔεϒϥϯνʹউखʹϚʔδ͍͍ͯ͠ͷʁ ίʔυϨϏϡʔΛड͚͔ͯΒɺϚʔδΛߦ͏Ͷ Ͳ͏ͬͯίʔυϨϏϡʔΛड͚Δͷʁ GitHubͰPull Requestɺ GitL a bͰMerge Request ͱ͍ͬͨػೳΛ͓͏
ػೳA͕ग़དྷͨͷͰɺPull RequestΛ࡞Γ·ͨ͠ ϨϏϡʔΛ͓ئ͍͠·͢ ྃղͰ͢ ͋Γ͕ͱ͏͍͟͝·͢ɻ ͡Ό͋Pull RequestΛϕʔεϒϥϯνʹϚʔδ͠·͢ Pull RequestΛݟ·ͨ͠ɻOKͰ͢
Pull RequestͬͯɺͲͷ͘Β͍ͷཻͰߦ͏ͱ͍͍ͷʁ Ұ֓ʹ͍͑ͳ͍͚Ͳɺ200 ~ 300ߦ·Ͱ͙Β͍ʹ͍͑ͨͶ Ͳ͏ͯ͠ʁ มߋ͕ଟ͘ͳΔ΄ͲɺίʔυϨϏϡʔͷෛ୲͕େ͖͘ͳΔ͔ΒͶ
ϑΝΠϧA ϑΝΠϧB ϑΝΠϧC ϑΝΠϧD ػೳA ػೳB ػೳC Λ࣮ͨ͠ͷͰɺϨϏϡʔΛ͓ئ͍ ͲͷϑΝΠϧʹɺͲͷػೳ͕͍ؔͯ͠ΔΜͩʁ
ϑΝΠϧA ػೳA Λ࣮ͨ͠ͷͰɺϨϏϡʔΛ͓ئ͍ Pull Requestʹ࠷ݶͷมߋͷΈͳͷͰݟ͍͢ʂ ϑΝΠϧB ϑΝΠϧC ࣍ʹػೳB Λ࣮ͨ͠ͷͰɺϨϏϡʔΛ͓ئ͍ ϑΝΠϧA
ϑΝΠϧC ϑΝΠϧD
ࡉ͔͍Pull RequestΛ࡞Δίπʁ 1ͭͷػೳΛࡉ͔ͳػೳʹׂͰ͖Δ͔ߟ͑Α͏ ͨͱ͑ɺʮCSVʹ͋Δࣈͷܭࢉ݁ՌΛอଘ͢ΔʯػೳΛ͚Δͱ 1. CSV͔ΒࣈΛಡΈࠐΉ 2. ܭࢉΛߦ͏ 3. ݁ՌΛอଘ͢Δ
GitͬͯศརͰ͢Ͷʂ