Git – branching

Listing branches

git branch list local branches

git branch -r show remote branches

git branch -a show all (local and remote) branches

Creating a branch

git branch <name> for creating a branch from the current HEAD (active commit) (without changes to the working tree)