git current local branch code example Example: git branch from current branch git checkout -b <branch-name>