Commit Rules

Some Principles

The commits should respect this following principles :

Commit Message

You should be clear on your commit message

First Line

When someone read the commit’s first line (git log --pretty=oneline --abbrev-commit) then one should understand what has been done ; this line should be 80 characters length or less

Full Message

When someone read the full commit message (git log) then one should understand what, how & why has been done

You should keep a blank line after the first line

You can be verbose, explain things, put links…

If you use a command to do the change (such as : sed) or generate (with a tool to scaffold / init a project) your file should write the command used in the long message of your commit

Types of Commit

Commit Message Template

Type of commit: description of what has been done in 80 characters or less

Long description who describe :