1. 创建分支并检出该分支 git checkout -b new_branch old_branch 2. 切换分支 git checkout branch_name 转载于:https://www.cnblogs.com/i-hard-working/p/10813730.html