Skip to main content

Posts

Showing posts from May, 2024

Git Flow Context

Git Flow Context In the context of Git Flow, a popular branching model for managing Git branches, the roles of tags and branches are clearly defined: Branches: Main Branches: main (or master) : The main branch where the source code of HEAD always reflects a production-ready state. develop : The branch where the latest development happens. This branch contains the complete history of the project, whereas the main branch contains an abridged version. Supporting Branches: Feature Branches: Used to develop new features. Typically created off the develop branch and merged back into develop. git switch -c feature/<feature-name> develop Release Branches: Used to prepare a new production release. Created from develop and merged into both main and develop. git switch -c release/<version> develop Hotfix Branches: Used to quickly fix production issues. Created from main and merged back into both main and develop. git switch -c hotfix/<description> main Tags: Release Tags : U...