switch
约 96 字小于 1 分钟
2025-03-13
主要作用
切换分支,checkout 也有这个功能
语法
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>
常用的参数
参数 | 解释 |
---|---|
<new-branch> | 分支名 |
常用命令举例:
切换到分支 hotfix
git switch hotfix
切换到上一个分支
git switch -
更新日志
2025/8/24 08:17
查看所有更新日志
e7112
-1于