Zaawansowany Git
Amanda Crawford-Adamo
Software and Data Engineer

$$
$$

Przełącz się na gałąź main
$ git checkout main
Utwórz commit squash ze zmian gałęzi data-cleanup
$ git merge --squash data-cleanup
Zatwierdź commit squash w historii gałęzi main
$ git commit -m "Implement and optimize data cleanup"

$$
$$

Polecenie Git Octopus Merge
git merge -s octopus
Przykład
$ 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.
...

Scalanie squash
git merge --squash <source_branch>
Scalanie octopus
git merge -s octopus <branch 1> <branch 2> <branch 3>
Zaawansowany Git