Background
In collaborative team development, unstandardized git commit messages can lead to hard-to-trace version history and inefficient code review. Writing standardized commit messages manually is not only time-consuming, but also difficult to ensure consistency.
prescription
Gissy's AI capabilities allow for the automatic generation of submission information that meets the specifications:
- Installation and configuration of AI services: Create an .env file in the project root directory and add any AI service provider API key (OPENAI_API_KEY is recommended)
- Enabling the AI function: Modify the .gissyrc.json configuration to set "useAI":true.
- Automatic generation of information: When a file change triggers a gissy watch, the system analyzes the git diff and generates a standard format like "fat: implement user login validation".
Options
If there is no AI service:
1. Use the gissy status command to view a summary of structured modifications
2. Manually enter a simple template via the -prompt parameter of the gissy watch
This answer comes from the articleGissy: a command line assistant that uses AI to enhance Git workflowsThe