Skip to content

Instantly share code, notes, and snippets.

Branch

git branch             # list local branches
git branch -r          # list remote branches
git branch -a          # list all branches

git branch -d branch_name       # delete local branch (merged)
git branch -D branch_name       # force delete local branch