git creat and checkout single line for branch code example Example: git branch and checkout at the same time $ git checkout -b <branch_name>