Advanced Git
Amanda Crawford-Adamo
Software and Data Engineer
$$
$$
Checkout the main branch
$ git checkout main
Create a squash commit of all data-cleanup changes
$ git merge --squash data-cleanup
Commit the squash commit to main branch history
$ git commit -m "Implement and optimize data cleanup"
$$
$$
Git Octopus Merge Command
git merge -s octopus
Example
$ 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>
Advanced Git