Compare

git tag vs branch

When to mark a fixed point in history and when to create a moving line of development.

A branch is a movable pointer for ongoing development. A tag is meant to mark a specific commit, usually for releases or important snapshots that should stay fixed.

Use a Tag When

You want to mark a release or permanent milestone commit.

You need a stable reference that should not move over time.

Use a Branch When

You want a line of development that will gain new commits.

You are collaborating on work that is still changing.

Rule of Thumb

Tags mark a point. Branches move forward.

Want the short version? Browse the compact sheet views and save the commands you use most into a Cheatbook.