| name | git-workflow |
| description | Git workflow guidelines for AI agents working on this repository |
Git Workflow
IMPORTANT: Never commit directly to main.
Branch Strategy
Always create a feature branch before making changes:
# Check current branch
git branch --show-current
# If on main, create and switch to a feature branch
git checkout -b feat/your-feature-name
# Or for fixes
git checkout -b fix/issue-description
Branch Naming
Use conventional prefixes:
feat/- New featuresfix/- Bug fixesrefactor/- Code refactoringdocs/- Documentation changeschore/- Maintenance tasks
Examples:
feat/app-launcherfix/api-caching-headersrefactor/system-info-service
Workflow
Before starting work:
git checkout main git pull origin main git checkout -b feat/your-featureMake commits on your branch:
git add -A git commit -m "feat: description of change"When ready for review:
git push -u origin feat/your-feature # Then create PR via GitHubNever force push to main or shared branches
Commit Messages
Follow conventional commits:
feat:- New featurefix:- Bug fixrefactor:- Code change that neither fixes a bug nor adds a featuredocs:- Documentation onlychore:- Maintenance
If You Accidentally Commit to Main
# Create a branch from current state
git branch feat/accidental-changes
# Reset main to origin
git reset --hard origin/main
# Switch to your new branch
git checkout feat/accidental-changes