Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Latest commit

 

History

History
29 lines (17 loc) · 550 Bytes

branches.md

File metadata and controls

29 lines (17 loc) · 550 Bytes

Branches

Branches are ways to isolate development work without affecting other branches in the repository.

Every repository (repo) has at least 1 default branch.

Conventionally, branches allow:

  • Development of Features
  • Bug Fixes
  • Environment for Experimenting of new ideas, safely

Commands

To create a new branch

  • git branch <BranchName>

To switch into a different branch

  • git checkout <BranchName>

To create and switch to branch

  • git checkout -b <BranchName>

next