How to git?¶
Make a new Feature¶
create a feature branch, by checking out development branch to the feature branch
git checkout -b myfeature developmentmake your developements
when finished, merge features branch into development branch, by checking out development branche
git checkout developmentmergin feature branch to development branch Important:
--no-ffgit merge --no-ff myfeaturedelet your features branch
git branch -d myfeaturepush development branch to origin (GitHub)
git push origin development
Make a Release¶
check out release branch from development branch -> name = release-X.X.X
git checkout -b release-X.X.X developmentincreasing version number and commit this
git commit -a -m "version number changed for release"make other stuff for release preparation and commit it
to finish the release, check out the master branch
git checkout mastermerge release branch to master branch
git merge --no-ff release-1.2make a tag
git tag -a v1.2.1push released master to origin (GitHub) with all tags
git push origin masterand merge release with development branch
git checkout developmentmerge release branch to master branch
git merge --no-ff release-1.2push released master to origin (GitHub) with all tags
git push origin developmentfinally delete release branch
git branch -d release-1.2