Git flow is a branching model for Git that helps large teams collaborate on projects.
There are several best practices for naming Git branches. One of them is to begin with unique IDs like JIRA ID followed by JIRA title in the branch names. You can use hyphen as separators and avoid using numbers only.
You can also use Git flow's naming conventions, which are based on the type of branch you're creating. For example, feature branches should be named `feature/branch-name`, release branches should be named `release/version-number`, hotfix branches should be named `hotfix/branch-name`, and bugfix branches should be named `bugfix/branch-name`.
So our branch names syntax could be like
for e.g.,
There are several best practices for naming Git branches. One of them is to begin with unique IDs like JIRA ID followed by JIRA title in the branch names. You can use hyphen as separators and avoid using numbers only.
You can also use Git flow's naming conventions, which are based on the type of branch you're creating. For example, feature branches should be named `feature/branch-name`, release branches should be named `release/version-number`, hotfix branches should be named `hotfix/branch-name`, and bugfix branches should be named `bugfix/branch-name`.
So our branch names syntax could be like
<work-type>/<jira-id>-<jira-title>
for e.g.,
- feature/AIQ-12345-summary-title-of-enhancement-task
- hotfix/AIQ-12345-summary-title-of-hotfix-task
- bugfix/AIQ-12345-summary-title-of-bugfix-task
- release/AIQ-12345-summary-title-of-release-task
Comments
Post a Comment