# @cspell/dict-git 中文文档

规范地址：https://npmcn.com/package/%40cspell/dict-git/

版本：3\.1\.1
npm 元数据更新时间：2026-09-17T18:33:24.439Z
中文译文更新时间：2026-11-11T03:11:54.269Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40cspell/dict-git
原文对照：https://npmcn.com/package/%40cspell/dict-git/?lang=original
项目主页：https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/vue#readme
源码仓库：https://github.com/streetsidesoftware/cspell-dicts

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：7.2 kB，5 个文件
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2022-04-08T09:35:34.350Z
- 最新版本发布：2026-09-17T18:33:24.067Z
- 近 30 天下载量：8014052（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：10（近 12 个月 2 个）

## 中文简介

GIT的 CSpell 配置 .

## 安装

```sh
npm install @cspell/dict-git
```

也可以使用：`pnpm add @cspell/dict-git`、`yarn add @cspell/dict-git`、`bun add @cspell/dict-git`

## README

# CSpell Git 配置

用于检查 Git Commission 信件的拼写配置 .

## 所需资源

| 工具 | 版本 |
| --- | --- |
| [点球](https://github.com/streetsidesoftware/cspell) | `>= 8` |
| [代码拼写检查器 - 视觉工作室代码](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) | `>= 4` |

## 本地安装

**这个包裹被CSpell捆绑.**

## 配置

VSCode 设置

在您的 VSCode 设置中添加以下内容:

**`.vscode/settings.json`**

```jsonc
{
  "cSpell.dictionaries": ["git"],
}
```
CSpell 设置 `cspell.json`

**`cspell.json`**

```jsonc
{
  "dictionaries": ["git"],
}
```
CSpell 设置 `cspell.config.yaml`

**`cspell.config.yaml`**

```yaml
dictionaries:
  - git
```

## 使用 CDN 本地安装

> **注:** 这个包裹被CSpell捆绑.

## 词典信息

| 名称 | 已启用 | 说明 |
| --- | --- | --- |
| `git` |  | Git 术语 |

## 语言设置

| 名称 | 语言 | 文件类型 |
| --- | --- | --- |
| `git` |  | `commit-msg`, (中文(简体) ), `git-commit` |
| `git` |  | `shellscript` |

## 捐款

请帮助纠正字典中的错误 .

见: [捐款](https://github.com/streetsidesoftware/cspell-dicts#contributing)

特别感谢我们所有出色的贡献者!

### 词典发展

见: [如何创建新词典](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)

## 用法承诺msg

**`.git/hooks/commit-msg`**

```sh
#!/bin/sh

exec npx cspell --language-id commit-msg $1
```

## 许可证

麻省理工学院

> 有些包裹可能还有其他许可证.

  

* * *

带给你的 [![Street Side Software Logo](https://i.imgur.com/CyduuVY.png) 街边软件](https://streetsidesoftware.com/ "Street Side Software")

## 常见问题

### @cspell/dict-git 是什么？

GIT的 CSpell 配置 \.

### 如何安装 @cspell/dict-git？

在项目目录运行 npm install @cspell/dict-git，或使用 pnpm add / yarn add / bun add。

### @cspell/dict-git 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/cspell\_\_dict-git 是否存在。

### @cspell/dict-git 可以商用吗？

@cspell/dict-git 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @cspell/dict-git 的下载量有多少？

根据 npm 官方下载统计，@cspell/dict-git 在 2026/10/11 – 2026/11/09 这 30 天内被下载 8,014,052 次，日均约 267,135 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @cspell/dict-git 还在维护吗？

最新版本 3\.1\.1 发布于 2026/09/18（1 个月前）；至今共发布 10 个版本，其中过去 12 个月发布了 2 个；首次发布于 2022/04/08。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

