Skip to content

Instantly share code, notes, and snippets.

@afrieirham
Created August 22, 2022 14:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save afrieirham/981171cd0466b5796e350505db4cdf3d to your computer and use it in GitHub Desktop.
Save afrieirham/981171cd0466b5796e350505db4cdf3d to your computer and use it in GitHub Desktop.
Git commit message format

Format:

<type>[optional module scope]: <description>

Example:

feat (auth): add facebook login

List of commit type:

  • feat – a new feature is introduced with the changes
  • fix – a bug fix has occurred
  • chore – changes that do not relate to a fix or feature and don't modify src or test files (for example updating dependencies)
  • refactor – refactored code that neither fixes a bug nor adds a feature
  • docs – updates to documentation such as a the README or other markdown files
  • style – changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on.
  • test – including new or correcting previous tests
  • perf – performance improvements
  • ci – continuous integration related
  • build – changes that affect the build system or external dependencies
  • revert – reverts a previous commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment