-
-
Notifications
You must be signed in to change notification settings - Fork 77
Git Branching Strategy and Best Practices
Mai edited this page Feb 25, 2025
·
1 revision
To maintain a clean and efficient development workflow, we follow a structured branching strategy in Git.
This is the production branch, where all stable and released code resides. Only thoroughly tested and approved code is merged here.
This branch is created from main and serves as the primary development branch, where ongoing feature development and bug fixes take place.
Feature branches are created off of develop to work on specific GitHub issues, such as new features or bug fixes. Once completed, they are merged back into develop.
- Feature branches are merged into
developvia a Pull Request (PR) after code review. - Once all features for a release are complete,
developis merged intomainvia a PR to ensure only stable code reaches production.
- When merging
developintomain, a GitHub release should be created, providing a summary of changes, features, and fixes introduced in that version.
Branch names should be descriptive and related to the associated GitHub issue. A recommended format is:
- Feature branches: {issue-number}-{short-description}
-
Example:
42-add-login-auth
-
Example: