GIT分支和合并命令之git-switch
名称NAME git-switch - 切换分支 概要SYNOPSIS git switch [<options>] [--no-guess] <branch> git switch [<options>] --detach [<start-point>] git switch [<options>] (-c|-C) <new-branch> [<start-point>] git switch [<options>] --orphan <new-branch> 描述DESCRIPTION 切换到指定的分支。 工作树和索引将更新以匹配分支。 所有新的提交都将添加到该分支的尖端中。 可选地,可以使用-c,-C从同名的远程分支中自动创建一个新分支(请参阅--guess),或者使用--detach在切换的时候,将工作树从任何分支中分离出来。 切换分支不需要干净的索引和工作树(即与HEAD相比没有区别)。 但是,如果该操作导致丢失本地更改,则该操作将中止,除非另行告知 --discard-changes 或 --merge 。 选项OPTIONS <branch> Branch to switch to. <new-branch> Name for the new branch. <start-point> 新分支的起点。 指定一个<start-point>允许你基于历史记录中其他点