Operations with branches
git branch
: List all branches.git branch <branch>
: Create a new branch.git checkout -b <branch>
: Create a new branch and switch to it.git checkout <branch>
: Switch to a branch.git merge <branch>
: Merge a branch into the active branch.