How to create branch and checkout at the same time in git

In this article let’s discuss about How to create branch and checkout at the same time in git. Let’s go through the following methods without any delay.

Method 1:

git checkout -b  
# --> name of the new branch being created.
# --> name of the branch to branch from.
#NB: no need to provide  if that is the active branch.

Hope the above solution works.

Realted Posts : Npm to yarn migration