Git Commit Conventions
Commit Message Format
Use semantic commit format: <type>(<scope>): <subject>
Commit Types
feat: add new featurefix: correct bugdocs: update documentationstyle: format code (no functional changes)refactor: restructure codetest: add/modify testschore: update build tasks
Workflow Rules
-
Language: Use English only for git commit messages.
-
Force Push: Always confirm before
git push --force. -
Sign-off: Include
--signoffflag with all commits. -
Consolidation: Consolidate changes into meaningful commits.
-
Push Confirmation: After making a local commit, ALWAYS prompt the user whether they want to push to the remote repository.
-
Display URL: After successfully pushing to remote, display the repository's access URL.