Branches used in github

In a typical Git-based workflow, especially in production environments, several important branches are created and maintained to manage different stages of development and deployment. Here are the key branches commonly used in production environments:

1. Main (or Master) Branch

  • Purpose: Represents the stable and release-ready version of the code.
  • Usage: This branch is used for production deployment. All changes should be thoroughly tested and reviewed before merging into this branch.

2. Develop Branch

  • Purpose: Serves as the integration branch for features and bug fixes.
  • Usage: This branch is used for merging feature branches and is where integration testing occurs. It acts as a staging area for code that will eventually be merged into the main branch.

3. Feature Branches

  • Purpose: Used to develop new features.
  • Usage: These branches are created from the develop branch and are merged back into develop after the feature is complete and tested.
  • Naming Convention: Typically named feature/feature-name.

4. Release Branches

  • Purpose: Used to prepare for a new production release.
  • Usage: These branches are created from the develop branch. They allow for final testing, bug fixing, and minor tweaks before merging into the main branch. After the release, they are also merged back into develop.
  • Naming Convention: Typically named release/x.y.z (where x.y.z is the release version).

5. Hotfix Branches

  • Purpose: Used to quickly address critical issues found in production.
  • Usage: These branches are created from the main branch to fix urgent bugs. After the fix is implemented, they are merged back into both main and develop branches.
  • Naming Convention: Typically named hotfix/issue-identifier.

Example Workflow:

  1. Starting New Feature Development:
  2. Merging Feature into Develop:
  3. Creating a Release Branch:
  4. Merging Release into Main and Develop:
  5. Creating a Hotfix Branch:
  6. Merging Hotfix into Main and Develop:


Thank you for reading



Venkatesh C.

Associate | Senior Analyst | Freelancer - Social Media Content Designer | Digital Marketing & SEO Writing | AI Content Writer | Landing Web-Page (SVG) Design Specialist | Content Editing & Documentation Expert

6 个月

Very informative

要查看或添加评论,请登录

Manasee Suuba的更多文章

  • How Pods Differ from Containers

    How Pods Differ from Containers

    Containers are the basic building blocks for running individual applications, pods provide the orchestration-friendly…

  • How would you perform a rolling update of an application across multiple servers to ensure zero downtime?

    How would you perform a rolling update of an application across multiple servers to ensure zero downtime?

    Use the serial keyword to update servers in batches. Ensure that a load balancer routes traffic away from the servers…

    1 条评论
  • AWS IAM (Identity and Access Management)

    AWS IAM (Identity and Access Management)

    AWS IAM is a service that enables you to manage access to AWS resources securely. It controls who (users, roles, or…

  • AWS Instance

    AWS Instance

    In AWS (Amazon Web Services), an instance refers to a virtual server that runs applications on the AWS infrastructure…

  • VPC

    VPC

    A VPC (Virtual Private Cloud) in AWS is a logically isolated section of the AWS cloud where you can launch AWS…

  • IAM

    IAM

    AWS IAM (Identity and Access Management) is a web service that helps you securely control access to AWS services and…

  • S3 bucket

    S3 bucket

    Amazon S3 (Simple Storage Service) is a scalable and durable object storage service provided by AWS. S3 Buckets are…

  • Cloudfront

    Cloudfront

    Amazon CloudFront is a content delivery network (CDN) service provided by AWS. It helps deliver content (web pages…

  • Cloudwatch

    Cloudwatch

    Amazon CloudWatch is a monitoring and observability service provided by AWS that helps you track the performance and…

  • CIDR Block

    CIDR Block

    A CIDR block (Classless Inter-Domain Routing block) is a range of IP addresses that is defined by a base IP address and…

社区洞察

其他会员也浏览了