Skip to content

Instantly share code, notes, and snippets.

@MattieBelt
Last active September 24, 2021 10:29
Show Gist options
  • Save MattieBelt/b3def6c4242747ce5748989344638b1a to your computer and use it in GitHub Desktop.
Save MattieBelt/b3def6c4242747ce5748989344638b1a to your computer and use it in GitHub Desktop.

Commit message

  • Separate subject from body with a blank line
  • Limit the subject line to 50 characters
  • Capitalize the subject line
  • Do not end the subject line with a period
  • Use the imperative mood in the subject line
    • If applied, this commit will ...
  • Wrap the body at 72 characters
  • Use the body to explain what and why vs how
  • (Use emojis https://gitmoji.dev if you feel bored)

soure

Branch name

  • master
  • hotfix/*
  • release/*
  • develop
  • (feature|test|fix|junk|chore|docs|refactor)/*

junk: experiment, never will be merged

chore: tool changes, configuration changes, and changes to things that do not effect an external user.

Regex: (feature|test|fix|junk|chore|docs|refactor)(/)([a-z]|-)+

git-model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment