Skip to content

Git list branch / Git delete branch

เราต้องการแสดง branch ทั้งหมด

bash

git branch
feature/first-feature
release/first-feature
fixbug/first-feature
* master

ถ้าหากต้องการลบ branch ใหม่ ให้ใส่ parameter -D เช่นต้องการลบ branch ชื่อ fixbug/first-feature

bash

git branch -D fixbug/first-feature

Tags: