1

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?

pain
  • 319
  • 2
  • 4
  • 18

1 Answers1

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