เราสามารถทำ checkout branch ได้โดยระบุชื่อ branch เช่น ต้องการ checkout branch ชื่อ test-first-branch
bash
git checkout test-first-branch
แต่ถ้าหากต้องการสร้าง branch ใหม่ ให้ใส่ parameter -b
bash
git checkout -b test-first-branch
เราสามารถทำ checkout branch ได้โดยระบุชื่อ branch เช่น ต้องการ checkout branch ชื่อ test-first-branch
bash
git checkout test-first-branch
แต่ถ้าหากต้องการสร้าง branch ใหม่ ให้ใส่ parameter -b
bash
git checkout -b test-first-branch