Creating parallel lines of development to build features in isolation.
Branching Flow Chart
Commit 1 → Commit 2 (main) → Commit 3 (main)
Commit 2 (main) ↳ checkout new branch → Feature Commit A → Feature Commit B
Branching Commands
| Command | Purpose | Description |
|---|---|---|
| git branch | List Branches | Lists all local branches in the repository. |
| git checkout [branch] | Navigate Branch | Switches the working directory to the target branch. |
| git checkout -b [new-branch] | Create & Navigate | Creates a new branch and switches to it in one step. |
| git branch -d [branch] | Delete Branch | Deletes a branch (requires that changes are merged). |