git checkout new branch
// create and checkout new branch in one line
git checkout -b new_branch
git checkout remote branch
# In modern versions of Git, you can checkout the remote branch like a local branch.
git checkout <remotebranch>
# Older versions of Git require the creation of a new branch based on the remote.
git checkout <remotebranch> origin/<remotebranch>
git checkout branch
truelover@PEACE project % git checkout master
truelover@PEACE project % git checkout branch_name
#create branch
truelover@PEACE project % git checkout -b new_branch_name
git checkout
git checkout -b origin/branch-name
git checkout -b branch-name
how to create new branch
How to create a new branch in git
$ git checkout -b good
here good is new branch name
the line 3 after executing we will go to that branch
git branch and checkout at the same time
$ git checkout -b <branch_name>