Add some more advanced tips

This commit is contained in:
Chalarangelo
2021-04-06 21:35:01 +03:00
parent 676a0aba80
commit cf58b9c285
5 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
title: Add a commit message template
tags: repository,configuration,advanced
---
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.
```sh
git config commit.template <file>
```
```sh
git config commit.template "commit-template"
# Sets "commit-template" as the commit message template
```