What is the difference between "git branch" and "git checkout -b"?

10/14 18:35
阅读数 0

问题:

I used git checkout -b to create a new branch.我使用git checkout -b创建一个新分支。 I think that git branch does the same thing.我认为git branch做同样的事情。 How do these two commands differ, if they differ at all?如果这两个命令完全不同,它们有何不同?


解决方案:

参考一: https://en.stackoom.com/question/XVxf
参考二: https://stackoom.com/question/XVxf
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部