Use branches effectively in Git
Create branches for changes, keep them small, and merge safely.
Goal
Use branches to work safely and reviewably.
Steps
- Create a new branch for a change.
- Make a small commit with a meaningful message.
- Push the branch and open a PR.
- Update the branch from main (merge or rebase) and resolve any conflicts.
Notes
Source inspiration: hippo-prototyping discussion https://github.com/hippo-digital/hippo-prototyping/discussions/64