True Care SystemTrue Care SystemDocumentation
Return to Website

SOURCE CONTROL

Git Workflow

Use focused branches and commits that support review, deployment, and rollback.

Production stability and security notice

Development changes must preserve working functionality, Provider isolation, role-based access, HIPAA auditability, released Mobile compatibility, and integration stability. Never deploy AI-generated or unreviewed code directly to production.

Commit Discipline

TopicStandard
Focused changeOne commit should represent one coherent change.
Clear messageState the module and purpose, not only 'update file'.
Separate projectsCommit API, Web, and Mobile separately when they deploy independently.
No generated noiseAvoid unrelated formatting or generated-file changes.
ReviewabilityKeep diffs small enough to understand.
Rollback readinessA commit should be reversible without undoing unrelated work.

Recommended Flow

  1. Pull the current branch.

    Confirm local code matches the intended baseline.

  2. Create or use the approved working branch.

    Keep the change isolated.

  3. Run checks.

    Type check, build, and perform targeted testing.

  4. Review the diff.

    Confirm no secrets, hard-coded Provider data, or unrelated changes.

  5. Commit and push.

    Use a descriptive message and preserve deployment separation.