Branch (EN)

Concept

Independent development line within a Git repository

Branch Topology in Git

flowchart TD     A[Initial Commit] --> B[Main Branch]     B --> C[Feature Branch 1]     B --> D[Feature Branch 2]     B --> E[Hotfix Branch]     C --> F[Merge Request]     D --> G[Merge Request]     E --> H[Urgent Merge]     F --> I[Merged to Main]     G --> I     H --> I     I --> J[New Main State] 

In Context

  • Typically used together with Merge, Pull Request and Rebase
  • Related to: Repository, Commit, Tag
  • Example use: Developing a new feature in an isolated branch to avoid affecting the main code
Quelle: AI Generated