Git Commit Command Reference

Quick reference for EBRAINS conventional commits.

Commit Message Format

Commit Types

TypeDescriptionExample
featNew featurefeat(forms): add validation
fixBug fixfix(api): correct endpoint
docsDocumentation only changesdocs(readme): update setup
styleCode style changes (formatting, white-space)style: format code
refactorCode restructuring (neither fixes bug nor adds feature)refactor(db): optimize queries
perfPerformance improvementsperf(api): cache responses
testAdding or correcting teststest(unit): add user tests
choreBuild process, tooling, dependencieschore: update dependencies

Scopes

Common scopes used in EBRAINS projects:

  • forms - Forms application
  • api - API/backend services
  • ui - User interface components
  • handbook - Handbook documentation
  • db - Database changes
  • config - Configuration files
  • ci/cd - Continuous integration/deployment
  • infra - Infrastructure changes
  • app-1, app-2 - Specific applications
  • shared-utils - Shared utilities/libraries

Trailers (Footers)

Required for EBRAINS projects:

Examples

Simple Commit

Commit with Body

Full Commit with Trailer

Breaking Change

Good vs Bad Examples

Incorrect:

Correct:

Branch Commit Message File

For complex commits, use a commit message file:

Create commit-message.txt:

Commit using the file:

Amending Commits

If you need to fix your last commit message:

Related Documentation