```bash git switch -c <branch_name> <origin_branch_name> # v2.23以前 git checkout -b <branch_name> <origin_branch_name> ```