Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
web制作におけるGitフロー
Search
井上拓
January 22, 2018
Technology
0
500
web制作におけるGitフロー
広島フロントエンド勉強会 Vol.15 ヒロフロ & AUG広島Git勉強会で発表したスライド
井上拓
January 22, 2018
Tweet
Share
More Decks by 井上拓
See All by 井上拓
これからはじめるGit
takanashi66
0
670
Laravel Mixではじめるwebpack
takanashi66
0
440
gulpやめてLaravel Mixはじめた話
takanashi66
1
180
LT-WordPressの開発をプラグインで管理する
takanashi66
0
320
広島フロントエンド勉強会 Vol.18 『gulpの基本とgulp4』
takanashi66
1
170
CSS Grid Layout Module
takanashi66
0
92
webサイトのiPhone X 対応
takanashi66
0
1.5k
広島フロントエンド勉強会 Vol.12 『CSS Grid Layout Module』
takanashi66
0
280
CSS Grid Layout Module
takanashi66
0
250
Other Decks in Technology
See All in Technology
自作Cコンパイラ 8時間の奮闘
soukouki
0
850
実務における脅威モデリングを考えよう
nikinusu
0
630
Tricentisにおけるテスト自動化へのAI活用ご紹介/20240910Shunsuke Katakura
shift_evolve
0
200
Creative UIs with Compose: DroidKaigi 2024
chrishorner
1
580
Fediverse Discovery Providers overview
andypiper
0
170
ナレッジグラフとLLMの相互利用
koujikozaki
0
420
DuckDB雑紹介(1.1対応版)@DuckDB座談会
ktz
6
1.4k
プロダクトエンジニアを支えるための開発生産性向上施策
tsukakei
0
140
DroidKaigi 2024 たすけて!ViewModel
mhidaka
5
940
プログラム検証入門
riru
6
870
【株式会社ELYZA】|GENIAC成果報告会 自社開発モデルプレゼンテーション
elyza
1
270
どこよりも遅めなWinActor Ver.7.5.0 新機能紹介
tamai_63
0
210
Featured
See All Featured
Practical Orchestrator
shlominoach
185
10k
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.8k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.6k
Adopting Sorbet at Scale
ufuk
73
8.9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
Making Projects Easy
brettharned
113
5.8k
Ruby is Unlike a Banana
tanoku
96
11k
Optimizing for Happiness
mojombo
375
69k
Building Your Own Lightsaber
phodgson
101
6k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
120
We Have a Design System, Now What?
morganepeng
48
7.1k
Transcript
pull commit merge checkout branch stash push add diff status
log reset revert rebase rm stash commit diff merge log add checkout pull push commit ώϩϑϩ & AUGౡGitษڧձ ʰweb੍࡞ʹ͓͚ΔGitϑϩʔʱ
Ҫ্ • ϑϩϯτΤϯυΤϯδχΞ • 19916݄6ੜ·Εͷ26ࡀ • ່͔Θ͍͍ • CSS
Nite in HIROSHIMA ࣮ߦһձ෭ҕһ • ϑϩϯτΤϯυษڧձ ओ࠵ • [CodeCode](https://codecodeweb.com/) ࣗݾհ
ࣗݾհ ݄ Ր ਫ ۚ ன ˕
˕ ˕ ˕ ˕ ˕ ൩ ˕ ˕ ˕
ώϩϑϩ & ଂ ʰोͳ͠୲ʑ໙͓͢͢Ίͷ৯ํʱ
͓͢͢Ί ʰމຑ̎ਏ + Թۄ + ωΪՃʱ
pull commit merge checkout branch stash push add diff status
log reset revert rebase rm stash commit diff merge log add checkout pull push commit ώϩϑϩ & AUGౡGitษڧձ ʰweb੍࡞ʹ͓͚ΔGitϑϩʔʱ
ҙ • Git-flowࠓճऔΓѻΘͳ͍ • ͕ࣗ։ൃ͢Δͱ͖ͷख๏Λհ͠·͢
ର • Gitॳ৺ऀ • GitͬͯΔ͚Ͳɺ͏·͑ͯ͘Δ͔Θ͔Βͳ͍ • Α͘ίϯϑϦΫτىͯ͜͠ɺݱΛࠞಱʹؕΕΔਓ
Α͋͘Δϑϩʔ
masterͰ࡞ۀ
masterͱ • GitཧΛ͡Ίͨ࣌ʹ੍࡞͞ΕΔ࠷ॳͷϒϥϯν • ओʹϦϦʔε͞ΕΔίʔυͱಉ͡ίʔυ͕͍Δ • pushͰ͖ͳ͍Α͏ʹͨ͠ΓɺͦͦϩʔΧϧʹ࣋ͨ ͳ͍Α͏ʹͨ͠Γ͞ΕΔ߹
masterͰ࡞ۀ • ϦϦʔε͞ΕΔίʔυʹόά͕ࠞ͡ΔՄೳੑ͕͋Δ • ࡞ۀ͕શʹऴΘ͍ͬͯͳ͍ͱϦϦʔεͰ͖ͳ͍ • ઌߦ։ൃ͕Ͱ͖ͳ͍ • ίϯϑϦΫτ͕ൃੜ͍͢͠
masterͰ࡞ۀ • ϦϦʔε͞ΕΔίʔυʹόά͕ࠞ͡ΔՄೳੑ͕͋Δ • ࡞ۀ͕શʹऴΘ͍ͬͯͳ͍ͱϦϦʔεͰ͖ͳ͍ • ઌߦ։ൃ͕Ͱ͖ͳ͍ • ίϯϑϦΫτ͕ൃੜ͍͢͠
master Πϕϯτϖʔδ࡞ ʑͷߋ৽ Πϕϯτऴྃใࠂ ΠϕϯτΞʔΧΠϒϖʔδެ։ Πϕϯτऴྃ
master ࡞ۀ͕࣌ؒ Γͳ͍ʂʂ ࠓதʹΑΖ͘͠ master Πϕϯτϖʔδ࡞ ʑͷߋ৽ Πϕϯτऴྃใࠂ ΠϕϯτΞʔΧΠϒϖʔδެ։ Πϕϯτऴྃ
ରࡦ
ରࡦ1 ؾ߹͍Ͱ͕ΜΔ • ΠϕϯτऴྃపͰ࡞ۀ ݱ࣮త͡Όͳ͍
ରࡦ2 ίϐʔϖʔδΛ࡞Δ • ϖʔδΛίϐʔͯ͠࡞͓ͬͯ͘ ʑͷߋ৽͕ϞϨͦ͏
ϒϥϯνͷ׆༻
ϒϥϯνͱ • ։ൃͷຊྲྀ͔Βذ͠ɺຊྲྀͷ։ൃΛअຐ͢Δ͜ͱͳ͘࡞ۀΛ ଓ͚Δػೳͷ͜ͱ • Git ͷϒϥϯνϞσϧɺGit ͷػೳͷதͰͬͱ͢Β͠ ͍ͷͩͱ͍͏ਓ͍Δ΄Ͳ •
؆୯ʹ͍͏ͱผͷੈքઢΛͭ͘Δ
ϒϥϯνͷ׆༻ • ฏߦ࡞ۀ༻ʹϒϥϯνΛͭ͘Δ • masterͰʑͷߋ৽Λͭͭ͠ɺdevͰऴྃ࡞ۀ $ git branch dev $
git checkout dev
ϒϥϯνͷ׆༻ • devͰͷ࡞ۀྃޙmastermerge͢Δ $ git checkout master $ git merge
dev
Ϛʔδͱ • ։ൃͷຊྲྀ͔Βذͨ͠ࢧྲྀΛຊྲྀʹ߹ྲྀͤ͞Δ͜ͱ • มߋΛՃ͑ͨϒϥϯνΛɺݩͷϒϥϯνʹϚʔδ͢Δ͜ͱʹΑͬ ͯɺमਖ਼Λྲྀ͠ࠐΉ • ຊྲྀͱࢧྲྀͰಉ͡ՕॴΛมߋ͍ͯͨ͠߹ɺίϯϑϦΫτ͕͓ ͖Δ •
ຊྲྀɺࢧྲྀͲͪΒ͔Λ࠾༻͢Δ͔खಈͰϚʔδ͢Δ
master Πϕϯτϖʔδ࡞ Πϕϯτऴྃ
master Πϕϯτϖʔδ࡞ Πϕϯτऴྃใࠂ dev git checkout -b dev Πϕϯτऴྃ
master Πϕϯτϖʔδ࡞ ʑͷߋ৽ Πϕϯτऴྃใࠂ ΠϕϯτΞʔΧΠϒϖʔδ dev git checkout -b dev
Πϕϯτऴྃ
master Πϕϯτϖʔδ࡞ ʑͷߋ৽ Πϕϯτऴྃใࠂ dev git checkout -b dev git
merge dev ΠϕϯτΞʔΧΠϒϖʔδ Πϕϯτऴྃ
ϒϥϯνΛ͏ͱ • ઌߦ։ൃ͕͍͢͠ • ෳਓ࡞ۀ͕͍͢͠ • ࣌ؒॖ͕Մೳ • ࣮ݧͰࣦഊͯ͠ϒϥϯνΛফͤݩͲ͓Γ
ن͕େ͖͘ͳΔͱ • masterϦϦʔεͷΈ͏ • devͱผʹfeatureϒϥϯνΛͭ͘Δ • feature࣮༧ఆͷ։ൃʹ͏ dev͔Βذͯ͠ɺdevʹϚʔδ͢Δ
Issueͷ׆༻
Issueͱ • GitHubBitbucketͳͲʹ͋ΔΛొ͢ΔϦετ • όάࠓޙ։ൃ༧ఆͷͷΛొ͢Δ
GithubɺBitbucketͱ • ϦϞʔτϦϙδτϦͷϗεςΟϯάαʔϏε • ؆୯ʹ͍͏ͱෳਓͰ࡞ۀ͢Δࡍʹ֤ʑͷมߋ͕ू͞ΕΔ ॴ
Issueͷॻ͖ํ • 1ͭͷIssueʹ1ͭͷ(όά) • λΠτϧ͚ͩͰIssueͷ༰͕ѲͰ͖ΔΑ͏ʹ • ίϝϯτʹ࣮ߦڥɾ࠶ݱखॱɾਖ਼͍͠ڍಈ(Θ͔Ε)Λॻ ͘
None
None
None
None
None
None
None
None
master Πϕϯτϖʔδ࡞ Πϕϯτऴྃ ʑͷߋ৽ Πϕϯτऴྃใࠂ ΠϕϯτΞʔΧΠϒϖʔδެ։ dev git checkout -b
dev git merge dev
master Πϕϯτऴྃ ߋ৽ Πϕϯτऴྃใࠂ ΠϕϯτΞʔΧΠϒϖʔδެ։ dev git checkout -b dev
git merge dev #5 git checkout -b #5 git merge dev όάमਖ਼
IsuueΛ͏ͱ • ToDoϦετ͕Ͱ͖Δ • ొ͢Δͱϝʔϧ͕ಧ͘ͷͰ֬ೝϞϨɾमਖ਼ϞϨ͕͘͢ͳ͍ • εϨουͰΓͱΓͰ͖ΔͷͰޮత • ϥϕϧΛ׆༻͢Δͱͬͱޮత •
ͬͱن͕େ͖͘ͳΔ߹Git FlowΛࢀߟʹ
ϓϧϦΫΤετ
ϓϧϦΫΤετͱ • ίʔυͷมߋΛϨϏϡϫʔʹ௨͠ɺϚʔδΛґཔ͢Δػೳ • ίʔυϨϏϡʔΛड͚Δ͜ͱͰɺόάͷൃݟͳͲίʔυͷ࣭ ͕อͨΕΔ $ git push origin
#5
ϓϧϦΫΤετͷॻ͖ํ • λΠτϧ͚ͩͰϓϧϦΫΤετͷ༰͕ѲͰ͖ΔΑ͏ʹ • ίϝϯτʹมߋΛ؆ܿʹॻ͘ • ͳΔ͘͜·Ίʹɺ1ཁ݅͝ͱ͕·͍͠
None
None
None
None
None
None
None
None
None
None
ϓϧϦΫΤετΛ͏ͱ • ͜ͷఔΛ܁Γฦ͢͜ͱͰɺίʔυͷ࣭͕อͨΕΔ • ίʔυϨϏϡʔ͢Δ͜ͱͰɺษڧʹͳΔ
·ͱΊ
·ͱΊ • masterͰͷ࡞ۀΊ·͠ΐ͏ • ϒϥϯνΛͬͯ࡞ۀΛޮԽͤ͞·͠ΐ͏ • IsuueΛͬͯϞϨͳ͘मਖ਼͠·͠ΐ͏ • ϓϧϦΫΤετͰίʔυϨϏϡʔ͠·͠ΐ͏
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠