Sebastian Boldt
Sebastian Boldt

Reputation: 5321

How to automatically add a prefix to commit messages?

Is it possible to define a global prefix for all the commit messages relating to a specific repository ?

Upvotes: 8

Views: 6211

Answers (1)

rmorrin
rmorrin

Reputation: 2485

You can use the commit.template setting as discussed here

$ git config commit.template /path/to/git-commit-template.txt

This will set the template for the current repository only. You can add the --global flag to apply to all repositories.

Upvotes: 13

Related Questions