git-scoped-account

Inject include.path directives into local git configurations for project-specific identities.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/hb9397/ai-agent-harness-docs --skill git-scoped-account
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-scoped-account
Source: https://github.com/hb9397/ai-agent-harness-docs/tree/main/plugins/ai-agent-harness/runtime/claude/skills/git-scoped-account
Command: npx skills add https://github.com/hb9397/ai-agent-harness-docs --skill git-scoped-account

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the issue of managing multiple git identities across different projects without modifying global git configurations, preventing accidental commits with the wrong credentials.

Core Features & Use Cases

  • Scoped Identity Management: Applies specific user.name and user.email settings to all git repositories within a designated project folder.
  • Safe Configuration: Uses include.path to isolate project-specific settings from the global ~/.gitconfig.
  • Use Case: When working on both personal open-source projects and client-specific repositories on the same machine, use this skill to ensure each project uses the correct email address automatically.

Quick Start

Use the git-scoped-account skill to apply the user name John Doe and email [email protected] to all git repositories located directly under the C:\dev\my-project folder.

Frequently Asked Questions about git-scoped-account

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up project-specific git identities without changing my global git config?

You can isolate project-specific git identities by using include.path directives injected into local repository configurations, which preserves your existing global gitconfig settings while applying distinct user.name and user.email values to designated project folders.

What is the best way to manage multiple git accounts on the same machine?

The best way to manage multiple git accounts involves applying scoped user.name and user.email settings to all repositories within a designated container directory, preventing accidental commits with the wrong credentials across different project folders.

Can I apply a specific git email to all repositories inside a directory?

Yes, you can apply a specific git email to all application repositories located directly within a specified container directory, automatically configuring each local repository with the targeted identity settings while keeping global configurations untouched.

How does git include.path work for scoping repository configurations?

The include.path mechanism works by injecting directives into local repository configurations to isolate project-specific settings from the global ~/.gitconfig, allowing safe scoped identity management across multiple application repositories within a container directory.

Is it safe to automate git configuration changes across multiple projects?

Automating git configuration changes is safe when using byte-level snapshotting and verification of git configuration origins, which ensures atomic application and provides rollback capabilities while operating on application repositories within a specified directory.

Why do I need scoped git identities for my local repositories?

You need scoped git identities to prevent accidental commits with the wrong credentials when working on both personal open-source projects and client-specific repositories on the same machine, ensuring each project automatically uses the correct email address.