FahamLah

Commands

git branch

git branch

Risk: Safe

What it does

Lists branches. A star shows where you are.

When to use it

To check which branch you are on.

Example

$ git branch

* main means you are on main.