Git nâng cao
Amanda Crawford-Adamo
Software and Data Engineer

$$
$$

Checkout nhánh main
$ git checkout main
Tạo squash commit cho mọi thay đổi của data-cleanup
$ git merge --squash data-cleanup
Commit squash vào lịch sử nhánh main
$ git commit -m "Implement and optimize data cleanup"

$$
$$

Lệnh Git Octopus Merge
git merge -s octopus
Ví dụ
$ 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 nâng cao