GitHub Step 4 of 5
GitHub for data practitioners
Create a branch
A branch is an isolated line of work. Use one branch for one reviewable change, such as adding a model, correcting a metric definition, or updating a freshness check. It keeps incomplete work away from the shared main branch.
Start from an up-to-date main, then create and switch to a clearly named branch:
git switch main
git pull
git switch -c exclude-cancelled-orders
Use names that describe the change. exclude-cancelled-orders is easier to understand than fix, especially six months later.
Make the change, validate it, inspect the diff, and commit it using the loop from the previous step.