Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
git enhancement
Search
Shin Tokiwa
August 06, 2012
Programming
260
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
git enhancement
#1 git-flow
Shin Tokiwa
August 06, 2012
Transcript
35 slides
git enhancement #1 git-flow 1 128݄6݄༵
Git ͬͯ·͔͢ʁ • தԝϦϙδτϦ͕ͳͯ͘ར༻Ͱ͖Δ • ϩʔΧϧͰϒϥϯνλάΛࣗ༝ʹ࡞Ͱ͖Δ • ෳͷϦϞʔτϦϙδτϦͱࣗ༝ʹ࿈ܞͰ͖Δ • Pull
Request (GitLab Ͱ Merge Request) ศར • ͳͲͳͲػೳ͕Γͩ͘͞Μʂ 2 128݄6݄༵
݁ߏͳΜͰͰ͖Δ 3 128݄6݄༵
Α͋͘Δޫܠ 4 128݄6݄༵
͓Ε Push ͨ͠Α Α͋͘Δޫܠ 4 128݄6݄༵
͓Ε Push ͨ͠Α ͜ͷ Branch ͳʹʁ Α͋͘Δޫܠ 4 128݄6݄༵
͓Ε Push ͨ͠Α ͜ͷ Branch ͳʹʁ ࠷৽ͲΕΑʁ Α͋͘Δޫܠ 4 128݄6݄༵
͓Ε Push ͨ͠Α ͜ͷ Branch ͳʹʁ ࠷৽ͲΕΑʁ ͜ͷόάमਖ਼Ͳͷ Branch ʹద༻ͨ͠ͷʁ
Α͋͘Δޫܠ 4 128݄6݄༵
ͭ·Γ… 5 128݄6݄༵
ͭ·Γ… ΧΦεͳঢ়گʹ ͳΓ͍͢ʂ 5 128݄6݄༵
ࠓͷຊ 6 128݄6݄༵
ࠓͷຊ git-flow ͕͍͢͝ 6 128݄6݄༵
What’s git-flow? 7 128݄6݄༵
What’s git-flow? • ࢄ͕ͪ͠ͳϒϥϯνΛཧ 7 128݄6݄༵
What’s git-flow? • ࢄ͕ͪ͠ͳϒϥϯνΛཧ • νʔϜͰϒϥϯνϞσϧΛڞ༗ 7 128݄6݄༵
What’s git-flow? • ࢄ͕ͪ͠ͳϒϥϯνΛཧ • νʔϜͰϒϥϯνϞσϧΛڞ༗ • Git ͷॴΛଛͳΘͣʹ Subversion
ͷΑ͏ͳूத ཧͬͪΌ͏ʂ 7 128݄6݄༵
What’s git-flow? • ࢄ͕ͪ͠ͳϒϥϯνΛཧ • νʔϜͰϒϥϯνϞσϧΛڞ༗ • Git ͷॴΛଛͳΘͣʹ Subversion
ͷΑ͏ͳूத ཧͬͪΌ͏ʂ • Ͱͨͩ git ίϚϯυΛϥοϓͯ͠Δ͚ͩ 7 128݄6݄༵
installation of git-flow • Mac OSX • brew install git-flow
• port install git-flow • Ubuntu • aptitude install git-flow • Windows • खॱ͕໘ͳͷͰׂѪ— 8 128݄6݄༵
git-flow branches Branch Name Description master ϦϦʔε༻ϒϥϯν develop ։ൃ༻ϒϥϯν feature/{feature
name} ػೳ։ൃ༻Ұ࣌ϒϥϯν release/{release name} ϦϦʔε༻Ұ࣌ϒϥϯν hotfix/{hotfix name} όάमਖ਼༻Ұ࣌ϒϥϯν support/{support name} αϙʔτ༻Ұ࣌ϒϥϯν {version} λά 9 128݄6݄༵
“master” and “develop” • “master” • ݱࡏϦϦʔε͞Ε͍ͯΔΞϓϦέʔγϣϯͱಉ • “develop” •
։ൃ൛ͷ࠷৽ • ʑػೳ͕Ճ͞Ε͍ͯ͘ײ͡ • ྫ͑։ൃڥͰಈ࡞͍ͯ͠ΔΞϓϦέʔγϣϯ͕ ૬͢Δ 10 128݄6݄༵
“feature” • “develop” Λݩʹ࡞͞ΕΔϒϥϯν • ಛఆͷػೳ։ൃணख࣌ʹ࡞ • ػೳ։ൃ͕ऴྃ͢Δͱ͖ʹ “develop” ʹϚʔδ
• Ϛʔδͱͱʹ “feature” ϒϥϯνഁغ 11 128݄6݄༵
“hotfix” • “master” Λݩʹ࡞͞ΕΔϒϥϯν • ՔಇதͷΞϓϦέʔγϣϯͰݟ͔ͭͬͨόάΛमਖ਼͢Δ ͨΊͷϒϥϯν • όάमਖ਼ணख࣌ʹ࡞ •
όάमਖ਼͕ऴྃ͢Δͱ͖ʹ “master” ͱ “develop” ʹϚʔδ • Ϛʔδͱͱʹ “hotfix” ϒϥϯνഁغ 12 128݄6݄༵
“release” • “develop” Λݩʹ࡞͞ΕΔϒϥϯν • ։ൃதͷ҆ఆ൛ΛϦϦʔε͢Δͱ͖ʹ࡞ • README ϦϦʔεϊʔτΛهड़ •
ϦϦʔελΠϛϯάͰ “master” ͱ “develop” ʹϚʔδ • Ϛʔδͱͱʹ “release” ϒϥϯνഁغ 13 128݄6݄༵
git-flow hands-on 14 128݄6݄༵
git-flow hands-on ͕࣌ؒ͋Ε ϥΠϒͰ ͬͯΈ·͢ 14 128݄6݄༵
؆୯ͳ·ͱΊ 15 128݄6݄༵
ػೳ։ൃ͢Δ • git flow feature start 1122_retrieve_gn • ͝ʹΐ͝ʹΐ։ൃ…ςετΕͣʹ… •
git flow feature finish 1122_retrieve_gn • “develop” ʹػೳ͕औΓࠐ·ΕΔ 16 128݄6݄༵
όάΛमਖ਼͢Δ • git flow hotfix start 1234_nullpo • ͝ʹΐ͝ʹΐमਖ਼͢Δ…વςετʂ •
git flow hotfix finish 1234_nullpo • “master” ͱ “develop” ʹऔΓࠐ·ΕΔ 17 128݄6݄༵
όάΛमਖ਼͢Δ • git flow hotfix start 1234_nullpo • ͝ʹΐ͝ʹΐमਖ਼͢Δ…વςετʂ •
git flow hotfix finish 1234_nullpo • “master” ͱ “develop” ʹऔΓࠐ·ΕΔ ࣗಈతʹ λά͚ 17 128݄6݄༵
ϦϦʔε͢Δ • git flow release start 1.2.1 • ϦϦʔεϊʔτΛॻ͜͏ʂ •
͜Μͳػೳ͕Ճ͞Εͨ • ͜Μͳόά͕मਖ਼͞Εͨ • git flow release finish 1.2.1 • “master” ͱ “develop” ʹऔΓࠐ·ΕΔ 18 128݄6݄༵
ϦϦʔε͢Δ • git flow release start 1.2.1 • ϦϦʔεϊʔτΛॻ͜͏ʂ •
͜Μͳػೳ͕Ճ͞Εͨ • ͜Μͳόά͕मਖ਼͞Εͨ • git flow release finish 1.2.1 • “master” ͱ “develop” ʹऔΓࠐ·ΕΔ ࣗಈతʹ λά͚ 18 128݄6݄༵
refs • nvie/gitflow • https://github.com/nvie/gitflow/ • A successful Git branching
model • http://nvie.com/posts/a-successful-git-branching-model/ • git-flow ʹΑΔϒϥϯνͷཧ • http://www.oreilly.co.jp/community/blog/2011/11/branch- model-with-git-flow.html 19 128݄6݄༵
·ͩ·͍ͩ͜ͳͤͯͳ͍ͷͰ͕͢ git-flow ʹΑͬͯιʔεཧ͕Θ͔Γ͘͢ͳΔ ͱײ͍ͯ͡·͢ 20 128݄6݄༵
·ͩ·͍ͩ͜ͳͤͯͳ͍ͷͰ͕͢ git-flow ʹΑͬͯιʔεཧ͕Θ͔Γ͘͢ͳΔ ͱײ͍ͯ͡·͢ ͏Ͷ 20 128݄6݄༵
͓ΘΓ 21 128݄6݄༵
Other Decks in Programming
See All in Programming
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
160
AppFunctionsの内部実装を紐解く
hiroaki404
1
120
Apache Airflow Introduction
leew
1
100
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
110
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
870
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
440
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Bash Introduction
62gerente
615
220k
Test your architecture with Archunit
thirion
2
2.5k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
A better future with KSS
kneath
240
18k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Exploring anti-patterns in Rails
aemeredith
4
590