Standard Git Commit Prefixes

These are prefixes suggested by What Sticks Code Companion my GPT from ChatGPT that specializes on What Sticks. But I think these align with other documentation.


  1. feat: Indicates a new feature for the user, not a new feature for a build script.

  2. fix: Fixes a bug.

  3. docs: Documentation only changes.

  4. style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).

  5. refactor: A code change that neither fixes a bug nor adds a feature.

  6. perf: A code change that improves performance.

  7. test: Adding missing tests or correcting existing tests.

  8. chore: Changes to the build process or auxiliary tools and libraries such as documentation generation.


When you're working with the What Sticks API, these prefixes can help you organize your commits related to different aspects of the project. For instance:


  • feat (WSAPI): Add new endpoint /new_feature in bp_users Blueprint.

  • fix (WSAPI): Resolve hashing issue in user password reset.

  • docs (WSAPI): Update README with new authentication flow.

  • refactor (WSAPI): Refactor /login route for improved error handling.