I can create develop branch by git branch <branchname>
, and I also can create dev branch by git checkout -b <branchname>
. Is the effect of the two command exactly the same?
Asked
Active
Viewed 331 times
1 Answers
2
git branch <branchname>
creates a new branch.
git checkout -b <branchname>
creates a new branch and checks out the newly created branch.

hungersoft
- 531
- 4
- 8