我最近发现了一个Git语法git checkout -b your-branch-name
。这与git checkout branch-name
有什么不同?有人能解释一下这两种语法有何不同吗?
-b
创建一个新分支并切换到它。
https://git-scm.com/docs/git-checkout