How to Create Branch in GIT

Written by

in

,
  • Create a blank branch (no-switching)
git branch <branch-name>
  • Create a blank branch and switch to it
git checkout -b <branch-name>
  • Create a branch from other branch
git checkout -b <branch-name> <branch-name-from>