Concept of Branches
Last updated
Last updated
▪ Branches are used for better collaboration
▪ A "main" branch (also called "master") is created by default when a new repository is initialized
▪ Each developer can then create temporary branches e.g. for a feature or bugfix and work on it without worrying to break the main branch
Git only allows to push if your changes don't cause a conflict.
▪ dev branch : intermediary master
▪ during sprint : features and bug merge into dev branch
▪ end of sprint : merge into master branch
▪ with MASTER branch
● only master branch for continuous integration/delivery
● pipeline is triggered whenever feature/bugfix code is merged into master
▪ with DEV branch
● deploying every single feature/bugfix
● features/bugfixes are collected in dev branch
● dev branch often becomes "work in progress" branch