Git ขั้นสูง
Amanda Crawford-Adamo
Software and Data Engineer

$$
$$

Checkout ไปที่ main branch
$ git checkout main
สร้าง squash commit จากการเปลี่ยนแปลงทั้งหมดใน data-cleanup
$ git merge --squash data-cleanup
Commit squash commit ลงใน history ของ main branch
$ git commit -m "Implement and optimize data cleanup"

$$
$$

คำสั่ง Git Octopus Merge
git merge -s octopus
ตัวอย่าง
$ git merge -s octopus ingest transform load
Trying simple merge with ingest
Trying simple merge with transform
Trying simple merge with load
Merge made by the 'octopus' strategy.
...

Squash merge
git merge --squash <source_branch>
Octopus merge
git merge -s octopus <branch 1> <branch 2> <branch 3>
Git ขั้นสูง