xxxxxxxxxx
truelover@PEACE project % git checkout master
truelover@PEACE project % git checkout branch_name
#create branch
truelover@PEACE project % git checkout -b new_branch_name
xxxxxxxxxx
# create and checkout a new branch in HEAD position
git checkout -b new_branch