Branches
main is the default branch for studio repos. New work goes on a named branch, then a pull request merges it.
Create a branch
From the latest main:
git checkout main
git pull origin main
git checkout -b docs/git-handbook
Use a short name that says what the change is: docs/…, fix/…, feature/…. Godot collaborators on WAB-Project-1 use feature/<short-description> and fix/<short-description> — see that repo’s CONTRIBUTING.md.
Switch and update
git checkout docs/git-handbook
git pull origin main
Pull main into your branch before a PR if main moved, so the review is not fighting old code.
Typical flow
- Branch off
main - Commit and push
- Open a pull request
- After merge, switch back:
git checkout main && git pull