Slide 7
Slide 7 text
Git Man
master
master is production
● If something needs to be fixed live,
you have an exact copy locally
● No surprise code, everyone knows
what went into master and there's a
neatly compressed log of it
● It'll always be the first thing a new
developer sees: How it works live.
develop
develop is a work in progress
● This is where the latest work goes to
when it's ready
● If things break here it's fine, because
it's not going anywhere yet
● If you need to start on something new,
you've got this fresh and untainted
branch to come from
features are for new work or changes
● Features are where the new meat is
being processed
● Feature branches have 2 steps
a. create, with develop as base
b. merge, into develop
● When you need to do something
different, or new, just make a new
feature branch from develop
feature/...
releases are controlled ships
● With enough features it's time for a
release branch to be made
● Release branches are good for
compiling, scripting, or anything
needed for production (vs
development)
● Release branch names are also tags,
so it's a snapshot (ie 6.0)
release/...
hotfix/...
hotfixes never touch unfinished code
● Hotfixes are like releases, but come
from master instead of develop
● Hotfix branches are the only branch to
merge into master
● With git-flow, you are forced to finish 1
hotfix before starting another