4. You heard
has
Cheap local branching
Full local history
10x the speed of svn
Staging area
Speed
Huge community
Feature based workflow
prominent in Open Source
cryptographic integrity
Distributed
7. Can we do a fast
Can we fix a bug for the
upcoming
RELEASE
HOTFIXrelease?
for the current
?
Can we
BUILD
the current code ?
Is the code for that
FEATURE
complete?
Has everybody
REVIEWED ?
the code for this feature
12. staging
promoted from staging, can receive hotfixes
Time
feature
master/
production
master is in production
PR
staging is the next version
new features off staging
with branch names like:
Hotfix
username/ISSUE-KEY-summary
24. The secret sauce
The merge protocol
When a branch is:
Change flows from
branch to baseline:
Change flows from baseline
to branch:
More stable than its baseline
Continuously
Never
When code complete
Continuously
Release branch
Less stable than its baseline
Feature branches
Credit: Laura Wingerd - The Flow of change
25. The secret sauce
The merge protocol
Release Branch
Never
Merge
merge!
continuously
Master
Backport single
changes using
git cherry-pick
37. Recommendation?
Explicit merges into the mainline
3
Don’t fear the Merge! Use it!
git log --first-parent
After review!
4
May rebase feature branches
To update the feature branch
5
Work with the tool!
Trying to strive for a linearized history is less useful than you think
60. $ git checkout master!
master is lookin'good! !
c4f3b4b has 4 green builds.!
!
$ git checkout stable-2.3 !
DANGER! stable-2.3 is
busted. e1324fa has 2 red
builds.!