git branch

Practice git branch from memory. Lists local branches. -a shows remote branches too. -d deletes a merged branch, -D force-deletes. git branch newname cre

List local branches and highlight the current one.

git branch

Lists local branches. -a shows remote branches too. -d deletes a merged branch, -D force-deletes. git branch newname creates a branch here.

Safety: Inspect first and avoid rewriting shared history unless the team expects it.

Build the habit: GitDrill drills git branch and the rest of the Git workflow until the safe first move is automatic. Try a Git drill.