Git一行代码创建并签出分支 hxy0601 2025-01-24 95 阅读1分钟 git中有两种方法直接使用一行代码创建并直接签出 git checkout -b new_branch_name git switch -c new_branch_name 其中2switch的方法要在git 2.23版本中才有效