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 232 times
1 Answers
1
git branch <branchname> creates a new branch.
git checkout -b <branchname> creates a new branch and checks out the newly created branch.
hungersoft
- 521
- 4
- 8