'What is the difference between git checkout -b and git switch -c? [duplicate]
I'm confused to which one actually creates a branch based on the current branch?
We can even add git branch <branchname>
on top of them, aren't they all the same?
Solution 1:[1]
It's formally the same thing in terms of results, but it is a newly introduced verb which less responsibility as checkout
.
Read this article for further information.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |