Skip to content
Back to skills

Git Config

BSecurity

Git設定ファイル管理。.gitconfig、.gitmessage、.gitignoreの確認・編集。トリガー: git config, gitconfig, gitmessage, gitignore, git設定

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
toolsbashgit

Security analysis

B75/100
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill git-config --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Config?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Config
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-git-config/badge)](https://www.skillsdirectory.com/skills/majiayu000-git-config)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Git設定ファイル管理。.gitconfig、.gitmessage、.gitignoreの確認・編集。トリガー: git config, gitconfig, gitmessage, gitignore, git設定"
allowed-tools:
  - Bash
  - Read
  - Edit
  - Grep
---

# git-config スキル

dotfilesリポジトリで管理しているGit設定ファイルの確認・編集を行う。

## 管理対象ファイル

| ファイル | 説明 | symlink先 |
|---------|------|-----------|
| `git/.gitconfig` | Gitグローバル設定 | `~/.gitconfig` |
| `git/.gitmessage` | コミットメッセージテンプレート | `~/.gitmessage` |
| `git/.gitignore_global` | グローバルgitignore | `~/.gitignore` |

## コマンド

### 現在のGit設定確認

```bash
git config --list --show-origin | head -30
```

### .gitconfig の確認

```bash
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitconfig
```

### .gitmessage の確認

```bash
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitmessage
```

### .gitignore_global の確認

```bash
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitignore_global
```

### 特定の設定値確認

```bash
git config --global user.name
git config --global user.email
git config --global core.editor
```

### symlinkの状態確認

```bash
ls -la ~/.gitconfig ~/.gitmessage ~/.gitignore
```

## .gitconfig の主要セクション

### [user]

```
[user]
  name = Your Name
  email = your@email.com
```

### [core]

```
[core]
  editor = vim
  excludesfile = ~/.gitignore
  autocrlf = input
  pager = delta
```

### [alias]

```
[alias]
  st = status
  co = checkout
  br = branch
  ci = commit
  ...
```

### [commit]

```
[commit]
  template = ~/.gitmessage
```

### [delta] (diff pager)

```
[delta]
  navigate = true
  side-by-side = true
  ...
```

## 実行フロー

### 設定確認

1. 現在のGit設定を表示
2. symlinkが正しく設定されているか確認
3. 設定値をユーザーに報告

### 設定変更

1. 変更対象ファイルを確認
2. 変更内容をユーザーに提案
3. ファイルを編集
4. 変更後の設定を確認

## 使用例

- "git configを確認"
- ".gitconfigの内容を見せて"
- "コミットテンプレートを編集"
- "gitignoreにパターンを追加"
- "エディタをvimに変更"

## Git設定の優先順位

1. ローカル(リポジトリ内 `.git/config`)
2. グローバル(`~/.gitconfig`)
3. システム(`/etc/gitconfig`)

## 注意事項

- 変更は `git/.gitconfig` に対して行う(symlinkのため `~/.gitconfig` に反映)
- 機密情報(トークン等)は直接書かない
- 変更後は新しいターミナルまたは `source ~/.zshrc` で反映確認
- エイリアスは oh-my-zsh の git プラグインと競合しないか確認

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.