---
title: "Working with Branches"
description: "Explore Contentstack's branching feature to manage content versions like GitHub, creating flexible workflows with multiple stack copies."
url: "https://www.contentstack.com/docs/headless-cms/working-with-branches"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-06-17"
---

# Working with Branches

Similar to GitHub, Contentstack provides "Branches" to create multiple copies of your stack content. Every [stack](https://www.contentstack.com/docs/developers/set-up-stack/about-stack/classic/) has a **main branch** by default. To create a new branch, you can fork a branch off of the main branch.

When you create a branch for the first time, the main branch becomes your source branch. For all subsequent branches you create, you need to specify a source branch from which it will inherit data.