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 Workflows: Beware of merge conflicts, they ...
Search
Olawale
July 07, 2023
Programming
0
130
Git Workflows: Beware of merge conflicts, they bite you!
Olawale
July 07, 2023
Tweet
Share
Other Decks in Programming
See All in Programming
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
290
Ruby×iOSアプリ開発 ~共に歩んだエコシステムの物語~
temoki
0
270
TDD 実践ミニトーク
contour_gara
1
290
Vue・React マルチプロダクト開発を支える Vite
andpad
0
110
Cache Me If You Can
ryunen344
1
590
Kiroの仕様駆動開発から見えてきたAIコーディングとの正しい付き合い方
clshinji
1
210
RDoc meets YARD
okuramasafumi
4
170
AWS発のAIエディタKiroを使ってみた
iriikeita
1
180
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
200
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
280
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
210
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
320
Featured
See All Featured
Thoughts on Productivity
jonyablonski
70
4.8k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Balancing Empowerment & Direction
lara
3
620
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Practical Orchestrator
shlominoach
190
11k
A designer walks into a library…
pauljervisheath
207
24k
Typedesign – Prime Four
hannesfritz
42
2.8k
Building Applications with DynamoDB
mza
96
6.6k
Designing for humans not robots
tammielis
253
25k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Context Engineering - Making Every Token Count
addyosmani
1
27
Music & Morning Musume
bryan
46
6.8k
Transcript
None
Outline • Why do we need them? • What are
they? • How do I use them? • Useful git commands
Why • Inefficient Release Process • Code conflicts • Scalability
concerns
Git Workflow Git Workflow is a git branching model for
teams that scales.
Git Workflow - Types • Git Flow • Github flow
• Trunk-based flow • Space Git Flow
Git Flow - Main Branches main develop For production code
only! Development code
Git Flow - Supporting Branches main develop Feature branches $
git checkout -b myfeature develop
Git Flow - Supporting Branches main develop feature branches $
git checkout -b release-1.0 develop release branches release branch for 1.0 release branch 1.1
main develop feature branches release branches release branch for 1.0
release branch 1.1 hotfixes
Useful git commands Git merge vs Git Rebase Both are
used for incorporating changes from one branch to another!
Git merge vs Git Rebase git merge feature develop develop
Git merge Result develop New Commit
Git Rebase Result develop git checkout feature git rebase develop
• No new merge commit • It results in a linear git history
Git Rebase - Interactive mode git checkout feature git rebase
-i develop pick 33d5b7a Add paypal payment method #1 pick 9480b3d Fix something #2 pick 5c67e61 Add idea payment method #3 develop
Git Rebase - Interactive mode SQUASHING! pick 33d5b7a Add paypal
payment method #1 fixup 9480b3d Fix something #2 pick 5c67e61 Add idea payment method #3 develop
Git Rebase The golden rule of git rebase is to
never use it on public branches
Questions?