<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn" -->

---
title: Using a Git Commit Template | daily.dev
description: The post discusses the benefits and process of using a Git commit template, inspired by the Conventional Commits specification. A Git commit template helps to...
canonical: https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using a Git Commit Template | daily.dev
og:description: The post discusses the benefits and process of using a Git commit template, inspired by the Conventional Commits specification. A Git commit template helps to...
og:url: https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn
og:image: https://api.daily.dev/og/posts/ayGt1LXvn.png
og:image:alt: Using a Git Commit Template
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using a Git Commit Template

**[Scott's Weblog](https://daily.dev/sources/scottlowe)** · 4 min read · 112 upvotes · 8 comments

## Summary

The post discusses the benefits and process of using a Git commit template, inspired by the Conventional Commits specification. A Git commit template helps to ensure consistency and build good habits in commit messages. The process involves creating a template file and configuring Git to use it, which can be done across various platforms like macOS, Linux, and Windows. This functionality is available directly from the terminal, although it can also be found in graphical Git clients like Tower.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.scottlowe.org/2024/07/15/using-a-git-commit-template/>

## Community discussion

Top comments from developers on daily.dev.

**@artyomvancyan** · 0 upvotes

> What do you think, can this be mixed with precommit?

**@filipemarcelino** · 0 upvotes

> Thank you for sharing!

**@d4rkm4n** · 0 upvotes

> What a good post!

**@codercadu** · 0 upvotes

> awesome

**@wu0lss4j** · 0 upvotes

> I like this, and I just made a slight modification, I dunno why you left <> in the template, but I assume for the moment it has to do with whatever app you user to process git logs.
>
> ```
> # TITLE
> # No more than 50 chars ##### 50 chars is here: #
>
> # Leave a blank line between title and body
> # BODY
> # Wrap at 72 chars ################################ 72 chars is here: #
> ```

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#git](https://daily.dev/tags/git), [#linux](https://daily.dev/tags/linux), [#mac](https://daily.dev/tags/mac), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using a Git Commit Template","url":"https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn"},"datePublished":"2024-07-15T14:57:42.886Z","dateModified":"2026-03-15T04:59:02.309Z","description":"The post discusses the benefits and process of using a Git commit template, inspired by the Conventional Commits specification. A Git commit template helps to...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Scott's Weblog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Scott's Weblog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5d8530c407894ba5b9b8ab602c57f10d","url":"https://daily.dev/sources/scottlowe"},"commentCount":8,"discussionUrl":"https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":112},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":8}],"keywords":"devtools,git,linux,mac,version-control","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Scott's Weblog","item":"https://daily.dev/sources/scottlowe"},{"@type":"ListItem","position":3,"name":"Using a Git Commit Template"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/using-a-git-commit-template-aygt1lxvn","comment":[{"@type":"Comment","text":"What do you think, can this be mixed with precommit?","datePublished":"2024-09-11T09:32:54.049Z","url":"https://daily.dev/posts/ayGt1LXvn#c-Orysunjd8","author":{"@type":"Person","name":"Artyom Vancyan","url":"https://daily.dev/artyomvancyan","image":"https://avatars.githubusercontent.com/u/44609997?v=4"}},{"@type":"Comment","text":"Thank you for sharing!","datePublished":"2024-09-22T10:55:02.930Z","url":"https://daily.dev/posts/ayGt1LXvn#c-msVCzvzdp","author":{"@type":"Person","name":"Filipe Marcelino","url":"https://daily.dev/filipemarcelino","image":"https://lh3.googleusercontent.com/a/ACg8ocLq34x4K4VLXaO9F4D0b_pgPS4jCg7o4eIE47KPReQv9_wTqlZAVA=s96-c"}},{"@type":"Comment","text":"What a good post!","datePublished":"2024-09-03T14:16:20.916Z","url":"https://daily.dev/posts/ayGt1LXvn#c-iyhoScrMm","author":{"@type":"Person","name":"Edwin","url":"https://daily.dev/d4rkm4n","image":"https://lh3.googleusercontent.com/a/ACg8ocJ_bvcWYXAJrrvQtcPgfWeoh-ck53O6ngRPUF2dQxS6Z0Q-1C39_g=s96-c"}},{"@type":"Comment","text":"awesome","datePublished":"2024-07-25T19:22:01.211Z","url":"https://daily.dev/posts/ayGt1LXvn#c-Noq2gDMBI","author":{"@type":"Person","name":"Carlos Silva","url":"https://daily.dev/codercadu","image":"https://avatars.githubusercontent.com/u/40584880?v=4"}},{"@type":"Comment","text":"I like this, and I just made a slight modification, I dunno why you left \u0026lt;\u0026gt; in the template, but I assume for the moment it has to do with whatever app you user to process git logs.\n# TITLE\n# No more than 50 chars ##### 50 chars is here: #\n\n# Leave a blank line between title and body\n# BODY\n# Wrap at 72 chars ################################ 72 chars is here: #","datePublished":"2024-09-23T09:17:34.449Z","dateModified":"2024-09-23T09:18:13.457Z","url":"https://daily.dev/posts/ayGt1LXvn#c-rvXIIdS8i","author":{"@type":"Person","name":"Bruno","url":"https://daily.dev/wu0lss4j","image":"https://media.daily.dev/image/upload/s--Ny8JSKuE--/f_auto/v1725530466/avatars/avatar_k9FTEUMZCmaLNWjVA7tyK"}}]}
```

