Skip to content

Instantly share code, notes, and snippets.

@saostad
Last active March 16, 2021 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saostad/9f51eab0ebc7d010c257894d763fcff0 to your computer and use it in GitHub Desktop.
Save saostad/9f51eab0ebc7d010c257894d763fcff0 to your computer and use it in GitHub Desktop.
git commit prefixes

it's recommended to have separate commit for each change

order in commit messages when multi line needed:

  • pub: x.x.x /** publish in package repository version: semver majon.minor.bugfix == breaking.feat.fix */
  • breaking: /** explanation of breaking change */
  • feat: /** added a feature */
  • fix: /** bug fix */
  • enhance: /** improve existing functionality (mostly performance) */
  • depricate: /** deprication of existing functionality */
  • doc: /** just updated docs / code comment */
  • pkg: updated | removed /** packages change */
  • refactor: /** refactor / re-structure code (code is working) */
  • step: /** step to achive a goal (code may work) */
  • middle: /** code is not working but I have to commit to not loose the work */
  • IDE: /** IDE related file changes e.g. .vscode file */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment