gitbranchgit-branchbranching-and-merging

Which command to use to create a new branch?


What's the difference between: git branch <branchname> and git checkout -b <branchname>, don't they both create a new branch?


Solution