Git merge vs git rebase

Anyone who has worked with Git at least once faced the dilemma of choosing between git merge (merging) and git rebase (rebasing). Both commands are used to integrate changes from one branch into another, but they do it in fundamentally different ways and have different use cases, both with their own pros and cons. Let’s try to understand how they work and the differences between them. Git Merge The merge command integrates changes from one branch into another by creating a new commit (called merge commit) that combines the changes from the source branch with the target branch....

October 31, 2024 · 6 min · Alessio Debernardi Venon

Trunk-based development - TBD

Trunk-based development (TBD) is a software development workflow that emphasizes frequent, small commits to a single codebase branch, called trunk or main branch. In TBD, developers works and push their changes directly into the trunk branch, or create short-lived feature branches that are merged back into the trunk frequently. This helps to keep the trunk branch up-to-date and ready for deployment at any time. This is in contrast with other branching models, such as Git Flow, which uses multiple long-lived branches for different purposes (such as development/staging/production and releases)....

October 30, 2023 · 3 min · Alessio Debernardi Venon