git add to created branch code example Example: creating a branch in git git checkout -b <branch_name>