git-config
БесплатноБез исполняемых скриптовНе проверенComprehensive Git configuration guide covering global settings, aliases, performance tuning, credential management, maintenance, .gitattributes, clone…
Об этом скилле
Git Configuration
Comprehensive guidance for configuring Git beyond basic installation. This skill covers global configuration, performance optimization, aliases, credential management, maintenance, and advanced configuration topics.
Table of Contents
- Overview
- When to Use
- Quick Start
- Configuration Files
- Global Settings
- Rerere
- Line Endings
- Aliases
- Clone Shortcuts
- Repository-Level Config
- Maintenance
- Git Attributes
- Credentials
- Troubleshooting
- Test Scenarios
Overview
This skill helps you:
- Configure Git globally for optimal performance and workflow
- Set up powerful aliases to streamline common operations
- Manage Git credentials securely (GitHub CLI, Windows Credential Manager)
- Configure
.gitattributesfor line ending control - Enable Git maintenance for better repository performance
- Understand repository-level vs global configuration
- Troubleshoot common configuration issues
For basic Git installation and setup, see the setup skill.
Example Use Cases
This skill activates for questions like:
- "How do I set up Git aliases for common operations?"
- "Configure Git to use GitHub CLI for authentication"
- "My Git is slow on large repos - how can I optimize performance?"
- "Set up .gitattributes for cross-platform development"
- "Enable Git background maintenance"
- "Troubleshoot 'refusing to allow OAuth App to create workflow' error"
- "Configure Git credential helpers on Windows"
- "Set up clone shortcuts for frequently-used repositories"
- "Configure rerere to remember merge conflict resolutions"
When to Use This Skill
Use this skill when:
- Configuring Git beyond basic user identity
- Setting up aliases for common Git operations
- Optimizing Git performance (fsmonitor, untrackedCache, parallel operations)
- Managing Git credentials (HTTPS, SSH, token scopes)
- Setting up GitHub CLI as credential helper
- Configuring
.gitattributesfor cross-platform line ending control - Enabling Git background maintenance
- Setting up clone shortcuts for frequently-used repositories
- Troubleshooting credential issues or line ending errors
- Understanding Git configuration hierarchy (system/global/local)
Quick Start
Most impactful configuration settings to apply immediately:
# Performance improvements
git config --global core.fsmonitor true
git config --global core.untrackedCache true
git config --global fetch.parallel 8
git config --global checkout.workers 8
# Better pull/rebase workflow
git config --global pull.rebase true
git config --global rebase.autoStash true
git config --global rebase.updateRefs true
# Auto-prune deleted remote branches
git config --global fetch.prune true
git config --global fetch.pruneTags true
# Better merge conflict resolution
git config --global merge.conflictstyle zdiff3
# Auto-setup remote tracking on first push
git config --global push.autoSetupRemote true
# Better diff algorithm
git config --global diff.algorithm histogram
git config --global diff.colorMoved zebra
# Line ending safety check
git config --global core.safecrlf warn
Quick Reference
Common Git configuration settings organized by category for quick lookup (performance, pull/rebase, fetch, push, diff, merge, line endings, sorting, maintenance).
📚 Complete Quick Reference Table: references/quick-reference.md
The quick reference table provides copy-paste commands for all common settings with category organization and purpose explanations.
Configuration File Locations
For detailed information about Git configuration file locations, hierarchy, and viewing configuration, see references/configuration-basics.md.
Quick summary:
- System:
/etc/gitconfig(or Git install dir on Windows) - All users - Global:
~/.gitconfigor~/.config/git/config- Current user - Local:
.git/config- Single repository only - Priority: Local > Global > System
View configuration:
# View all configuration with source files
git config --list --show-origin
# View specific value
git config user.name
Global Configuration Settings
These settings are cross-platform and recommended for all users. They should be set at the global level unless you need repository-specific overrides.
Most Essential Settings (Quick Start):
# Pull & rebase (cleaner history)
git config --global pull.rebase true
git config --global rebase.autoStash true
# Fetch (auto-prune deleted branches/tags)
git config --global fetch.prune true
git config --glo
Установить git-config в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGlobGrepВложенные файлы
FAQ
Что делает скилл git-config?
Comprehensive Git configuration guide covering global settings, aliases, performance tuning, credential management, maintenance, .gitattributes, clone shortcuts, and troubleshooting. Use when configuring Git beyond basic setup, optimizing Git performance, setting up aliases, managing credentials (GitHub CLI, Windows Credential Manager), configuring line ending strategy, setting up .gitattributes, enabling Git maintenance, or troubleshooting configuration issues. Cross-platform guidance for Windows, macOS, and Linux.
Как установить скилл git-config?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-config запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic