-
Notifications
You must be signed in to change notification settings - Fork 10
Commit Message Structure
Naveen Sundar edited this page Apr 17, 2020
·
2 revisions
Syntax for a commit message is:
type: message
Message:
- The message should say what the commit is for.
- Use an imperative tone to describe what a commit does, rather than what it did. For example: use change; not changed or changes.
- Message should be no longer than 50 characters.
- Should start with a capital letter
Type can be one of these:
- feat: a new feature
- fix: a bug fix
- docs: changes to documentation
- test: adding tests, refactoring test; no production code change
- refactor: refactoring production code, formatting, missing semi colons etc.,
Examples:
feat: Create django app users
fix: Error on wrong user id to api/users/
docs: Update screenshots in the documentation
test: Add tests/api/get_users.py
refactor: Simplify utils/send_email.py
NITRR Open Source is an initiative by Entrepreneurship Cell of National Institute of Technology, Raipur.