Git
An interactive commit assistant that runs dart format, displays git status, guides you step-by-step to write a well-structured commit message, and then pushes to your branch — all in one command.xflutter_cli gitCommit Types
The CLI will ask you to select a commit type. Each type guides you through type-specific prompts to automatically compose a descriptive commit message.| Type | Description | Example commit |
|---|---|---|
| Fixing | Resolve a bug or crash | Fix crash on app startup due to null reference in authentication module |
| Adding Feature | Introduce new functionality | Add push notifications feature |
| Refactoring | Improve code structure without changing behavior | Refactor user profile screen for improved code structure |
| Documentation | Update or add documentation / comments | Add comments to LoginViewModel.dart for improved code readability |
| Optimization | Improve performance or resource usage | Optimize image loading for faster performance |
| Configuration | Update settings or environment config | Update API endpoints for production environment |
| Cleanup | Remove unused code, files or dependencies | Remove unused imports, libraries and resources |
| Dependency Update | Upgrade or downgrade a library | Upgrade Firebase SDK with version 9.0.0 |
| Testing | Add, update or fix tests | Add UI tests for login screen |
| Revert | Revert a previous commit | Revert "Add push notifications feature" |
| Formatting | Code formatting only | — |
| Other | Free-text commit message | — |
Usage:
Name | Type | Description | Example |
|---|---|---|---|
| origin | option | branch name to push to. When provided the CLI skips the interactive branch prompt | main |