Nest all content into snippets
This commit is contained in:
22
snippets/git/s/commit-template.md
Normal file
22
snippets/git/s/commit-template.md
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
title: Add a commit message template
|
||||
type: snippet
|
||||
language: git
|
||||
tags: [repository,configuration]
|
||||
author: chalarangelo
|
||||
cover: river-house-lights
|
||||
dateModified: 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
|
||||
```
|
||||
Reference in New Issue
Block a user