Use descriptive branch names with the following prefixes:
feat/- New featuresfix/- Bug fixesdocs/- Documentation changesrefactor/- Code refactoringtest/- Adding or updating testschore/- Maintenance tasks
Examples:
feat/add-inventory-searchfix/part-deletion-bugdocs/update-api-referencerefactor/optimize-database-queries
-
Create a new branch
git checkout -b feat/your-feature-name
-
Make your changes
-
Test your changes
# Backend uv run pytest uv run ruff check backend uv run ruff format backend # Frontend cd frontend npm test npm run dev # Manual testing
-
Commit your changes
Write clear, descriptive commit messages following this format:
type: Brief description (50 chars or less) More detailed explanation if needed. Wrap at 72 characters. Explain the problem this commit solves and why you chose this particular solution. Closes #123 (if applicable)Commit types:
feat: New featurefix: Bug fixdocs: Documentation changesrefactor: Code refactoringtest: Adding testschore: Maintenancestyle: Formatting changes
Example:
feat: Add inventory search with filters Implement search functionality for the inventory page with filters for part name, category, and stock status. Includes pagination for large result sets. Closes #45 -
Keep your branch up to date
git fetch upstream git rebase upstream/main
-
Push your changes
git push origin feat/your-feature-name