Files
30-seconds-of-code/snippets/commit-template.md
Isabelle Viktoria Maciohsek ee28929328 Make expertise a field
2022-03-01 20:23:46 +02:00

21 lines
520 B
Markdown

---
title: Add a commit message template
tags: repository,configuration
expertise: advanced
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Sets up a commit message template for the current repository.
- Use `git config commit.template <file>` to specify `<file>` as the commit message template for the current repository.
```shell
git config commit.template <file>
```
```shell
git config commit.template "commit-template"
# Sets "commit-template" as the commit message template
```