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.
Learn it in: HEAD: you are here · Official docs
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?
git branchgit branch
Risk: Safe
Lists branches. A star shows where you are.
To check which branch you are on.
$ git branch* main means you are on main.
Learn it in: HEAD: you are here · Official docs