Lists all local branches. Current branch is highlighted (with green color)
git branch
Lists all remote branches
git branch -r
Lists all local and remote branches
git branch -a
Creates new branch
login
to work on login functionality on the branch
git branch login
Shows branches that are merged already
git branch --merged
Deletes the
login
branch
git branch -d login
Deletes the
login
branch (with force mode, which means - the branch will be deleted, even if it's not fully merged
git branch -D login
by Valeri Tandilashvili
4 years ago
Git
Git & GitHub Crash Course For Beginners
1
Pro tip: use ```triple backticks around text``` to write in code fences