Use this file to discover all available pages before exploring further.
Forge provides intelligent git integration that helps with commit messages, branch management, pull requests, and conflict resolution. It understands your changes contextually and generates professional git operations automatically.
Never write another generic “fix stuff” commit message. Forge analyzes your changes and generates descriptive, conventional commit messages automatically.
Forge generates commits following Conventional Commits:
type(scope): brief description- Detailed explanation of changes- Why the changes were made- Impact on the system
Examples:
feat(auth): add JWT token refresh mechanism- Implement automatic token refresh before expiry- Add refresh token rotation for security- Handle refresh failures with user re-authentication
fix(api): resolve race condition in user session handling- Add mutex lock for concurrent session access- Prevent duplicate session creation- Fixes issue where users occasionally logged out unexpectedly
refactor(database): optimize query performance for user lookups- Replace N+1 queries with batch loading- Add database indexes for email and username- Reduces average lookup time from 200ms to 15ms
## Summary- Brief overview of changes- Key features or fixes added- Impact on existing functionality## Motivation and ContextExplanation of why these changes were needed and the problem they solve.## Testing Performed- Unit tests added/updated- Integration tests verified- Manual testing scenarios## Breaking ChangesList any breaking changes and migration steps (if applicable).
# Review all changes in current branch: Review the current branch changes# Compare with main branch: Compare this branch with main and summarize differences# Identify potential issues: Check for any breaking changes in this branch
# Start feature branchgit checkout -b feature/new-caching# Make changes and stagegit add .# Generate good commit message: Generate commit message for these caching changesforge git commit# Continue development with context: Add tests for the caching layer @[tests/cache_test.rs]# Prepare for PR: Create a pull request explaining the caching improvements
# Truncate to 50KBforge git commit-message --max-diff-size 50000# Forge will:# 1. Truncate at character boundary# 2. Focus on most important changes# 3. Generate message from available context
---name: prepare-prdescription: Prepare branch for pull request---1. Run tests and linting2. Stage all changes: `git add .`3. Generate and create commit with descriptive message4. Push branch to remote5. Create pull request with comprehensive description6. Add reviewers based on CODEOWNERS
# Make changesvim src/feature.rs# Quick commit: Stage and commit these changes# Push and create PR: Push to remote and create pull request# All in one conversation context