Workflow Git & Workflow

Feature Branch Workflow

End-to-end process for developing on a feature branch

gitbranchingworkflow
CLAUDE.md

When starting a new feature branch:

  1. Pull the latest main branch: git checkout main && git pull.
  2. Create a descriptive branch: git checkout -b feature/short-description.
  3. Make small, focused commits as you work. Each commit should build and pass tests.
  4. Push your branch regularly to preserve work remotely.
  5. When the feature is complete, rebase on main to resolve conflicts: git fetch origin && git rebase origin/main.
  6. Run the full test suite on the rebased branch.
  7. Open a pull request with a clear description of the change and how to test it.

Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.

get crystl