

Without the separators, the names become more challenging to read, creating confusion for the team. The idea is to keep it tightly consistent. The preference between a hyphen, slash, or underscore separator is based on you and your team's choice. Using an external issue tracking ID in the branch name can facilitate tracking the progress from external systems. It makes tracking team progress very easy. With unique issue tracker IDs, you are essentially marking the task's category in the tracker and adding many useful contexts.ĭevelopers mostly work on several issues at a given time, and an issue tracker helps to connect the working branch with relevant tasks. Prefixes such as hotfix, feature, chore, or any other variant to categorize a task, increase the work requiring more decision-making while naming. Using unique issue tracker IDs in branch names With the help of the category word, it is effortless to identify the purpose of the Git branch and attend to it.Ģ. Bug - A bug or an error that needs fixing promptly.WIP - Work in progress and needs your attention.The word selection could be anything that suits your working system. One of the best methods to improve efficiency is by adding a word that categorizes the branch.

Starting branch name with a category word The best practices of the Git branch naming conventionġ. There are a large number of recommended conventions and formats, following which could be a challenging task. Team members can create and delete these branches whenever it is required. It ensures a stable codebase for the production environment through the QA testing process. This branch holds the QA codes and automation testing of the implemented changes.
#Branch from master git code
Merging is possible only after code review. It usually is stable and doesn't allow direct check-in. Team members need to keep the master branch stable and updated. The Master branch is the default branch available in the Git repository. Before merging to the master, changes made in the dev branch undergo reviews and tests. The two broad categories of Git branchesĪvailable permanently in the repository, the naming convention of regular branches is easy and straightforward.ĭevelopment (Dev) Dev, the main development branch, restricts developers from adding any changes in the master branch directly. It helps in separating the work strategically. Git branching naming convention supports the organic growth of a codebase in a systematic way. With a lack of appropriate naming conventions, the code maintenance team suffers numerous confusions and complications. It helps teams and developers by describing the naming guidelines of branches and elaborates on what use the branches should have, and so on. A branching strategy is a convention or a set of rules that specify when branches get created.
