Skip to content

Git clone แบบเลือก branch

ปกติ ถ้าเรา run git clone จะได้ branch default ( หากไม่มีการเปลี่ยน default branch name ก็จะได้ branch main ) แต่ถ้าหากอยากระบุ branch ตอนที่ สั่ง git clone ก็สามารถทำได้โดยระบุชื่อ ด้วย parameter -b เช่น ต้องการ clone branch name test

Git clone

เราสามารถทำ git clone ได้จาก 2 source 1 http 2 ssh