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 branching strategy
Search
Derek Johnson
September 17, 2015
Technology
0
78
Git branching strategy
Slides from an internal presentation for new staff
Derek Johnson
September 17, 2015
Tweet
Share
More Decks by Derek Johnson
See All by Derek Johnson
Responsive Web Design
derekjohnson
0
33
Git basics
derekjohnson
1
52
Responsive images have landed
derekjohnson
2
120
How modern web design works
derekjohnson
0
410
Other Decks in Technology
See All in Technology
反実仮想機械学習とは何か
usaito
PRO
11
4.7k
データベース02: データベースの概念
trycycle
0
160
MapLibreとAmazon Location Service
dayjournal
1
160
LayerXにおけるLLMプロダクト開発の今までとこれから
layerx
PRO
1
380
Compose Compiler Metricsを使った実践的なコードレビュー
tomorrowkey
1
220
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
300
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
120
競技としてのKaggle、役に立つKaggle
yu4u
3
1.8k
開発生産性大幅アップ!Postman VS Code拡張機能
nagix
2
380
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
170
一生覚えておきたい「システム開発=コミュニケーション」〜初めての実務案件振り返りLT〜
maimyyym
1
160
いつか使うかも貯金してたらめちゃめちゃ機能が増えてた話
riyaamemiya
0
320
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Designing for humans not robots
tammielis
248
25k
Automating Front-end Workflow
addyosmani
1356
200k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
GraphQLとの向き合い方2022年版
quramy
32
12k
How to name files
jennybc
65
93k
What's in a price? How to price your products and services
michaelherold
237
11k
RailsConf 2023
tenderlove
4
540
Building Your Own Lightsaber
phodgson
99
5.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
4 Signs Your Business is Dying
shpigford
175
21k
Transcript
Git branching strategy
git checkout -b offline Creates a new branch called “offline”
branching off from the current branch
git checkout dev Moves to an existing branch called “dev”
git branch -m watch clock Renames a branch called “watch”
to “clock”
git branch -m develop Renames the current branch to “develop”
git branch -d develop Deletes the branch called “develop”
git merge --no-ff aria Merges the branch called “aria” into
the current branch
git checkout -t origin/staging Create a new branch called “staging”
that tracks the remote branch called “staging”
None
Feature branches Release branches Hotfix branches
None
git checkout -b <feature>
None
git checkout dev git merge --no-ff <feature>
None
git checkout staging git merge --no-ff dev
Feature branches Release branches Hotfix branches
None
git checkout -b release-2.2.0
README.md CHANGELOG.md
None
None
git checkout master git merge --no-ff release-2.2.0 git tag 2.2.0
git push origin master 2.2.0
Feature branches Release branches Hotfix branches
None
git checkout -b hotfix-2.2.1
README.md CHANGELOG.md
None
git checkout -t origin/staging Create a new branch called “staging”
that tracks the remote branch called “staging”
git push -u origin staging Push a local branch called
“staging” to remote