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
git enhancement
Search
Shin Tokiwa
August 06, 2012
Programming
3
250
git enhancement
#1 git-flow
Shin Tokiwa
August 06, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
ThorVG Viewer In VS Code
nors
0
700
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.5k
クラウドに依存しないS3を使った開発術
simesaba80
0
230
ゆくKotlin くるRust
exoego
1
210
AIエージェントの設計で注意するべきポイント6選
har1101
6
3.2k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
330
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
850
AgentCoreとHuman in the Loop
har1101
5
190
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
250
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.4k
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
780
Data-Centric Kaggle
isax1015
2
660
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
800
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Ruling the World: When Life Gets Gamed
codingconduct
0
130
Become a Pro
speakerdeck
PRO
31
5.8k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
59
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
So, you think you're a good person
axbom
PRO
2
1.9k
Scaling GitHub
holman
464
140k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.2k
Transcript
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݄༵