Git Branching - liuninglin/pandama-ext GitHub Wiki
branches
master (milestone)
dev
release
features/xxx
bugfix/xxx
rules
master, dev, release: except maintainer, no one can push to these four branches
every developer only have full control to the branch of "feature/xxx" or "bugfix/xxx"
"features/xxx" or "bugfix/xxx", "xxx" means the backlogId or the bugId
git flow: features/xxx -> dev -> release -> bugfix/xxx -> dev -> release -> master
dev steps
switch your local git branch to "dev"
"git fetch & git merge" all new features from remote repository
create your new local git branch, such as "features/shoppingcart" from your updated local dev branch
code on your local branch "features/xxx", then "git add .", "git commit -m", and "git push origin features/xxx"
reach out to GitHuthe initial letter must be capital and pull/request your new features to remote the dev branch
maintainer reviews codes and confirms your pull/request
the task of new feature development done
the steps of the bugfix are the same as the features branch
git commit rule
initial letter must be capital
start with the verb (e.g. "Repair the issue of ....", "Add new model for the shopping cart")
commit each minor change as much as you can (don't commit too many files with just one commit)
don't commit your local useless files or sensitive files to the remote repository
pull/request rule
the title follows the first and the second rule of the "git commit rule"
for the content, you can describe the specific feature of this pull/request, or just describe the purpose of this pull/request. More concrete as you can