Skip to content

06. Feature Branch Workflow

Tetiana Kalinovska edited this page Feb 9, 2026 · 2 revisions

Feature Branch Workflow

This page describes how feature branches are used in this project. It focuses only on creating, naming, and working within feature branches.

What Is a Feature Branch?

A feature branch is a short-lived branch used to implement one user story or task.

Feature branches help to:

  • isolate new functionality
  • keep the develop branch stable
  • allow parallel work within the team

Naming Convention for Feature Branches

All feature branches must follow this naming pattern:

[feature/]

Rules:

  • use lowercase letters
  • use hyphens - to separate words
  • keep the name short and descriptive
  • start with the branch type (feature/, fix/, chore/) followed by a short description separated by hyphens

Examples: feature/login-page
fix/user-auth-bug
chore/ci-cd-pipeline

Creating a feature branch from main/develop

Feature branches are always created from develop.

git checkout develop git pull origin develop git checkout -b feature/your-feature-name

This ensures your feature branch is based on the latest development state.

Working on the user story in the feature branch

When working on a feature branch:

  • implement only one user story or task
  • commit changes incrementally
  • use clear and meaningful commit messages

git add . git commit -m "Add login form validation"

Screenshot(s) of branch creation / branch list

Example: Feature / Chore Branch Creation

The following screenshots demonstrate the practical usage of the feature/chore branch workflow in this project.

Branch List Overview

d6ddc166-e542-4567-a92e-99b391733b53

This screenshot shows the current list of branches in the repository, including:

  • the develop and main branches
  • multiple feature/*, fix/*, and chore/* branches
  • consistent usage of the agreed naming conventions

Creating a New Branch

06790b2e-71cf-4b36-b3cc-e2ccb51602cd

This screenshot demonstrates creating a new branch from develop using the naming convention: chore/article-service-unit-test.

Pushing the Branch to Remote

564bd1fa-f37b-4ea6-814c-0875a101e96f

This screenshot shows pushing the newly created branch to GitHub and setting the upstream branch, making it ready for collaboration and pull requests.

Clone this wiki locally