smithery.ai

configure-git-cli

Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT)

First seen Apr 11, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
CompatibilityRequires git installed and GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT environment variables set

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,893 B
  • docs SUMMARY.md 137 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Configure Git CLI

When to use this skill

Use this skill before performing git operations (clone, push, commit, etc.). Required by the codebase-fix-and-pr skill.

Prerequisites

Required environment variables:

  • GITHUB_EMAIL: Email address for git commits
  • GITHUB_NAME: Name for git commits
  • GITHUB_PAT: GitHub Personal Access Token with repo and workflow scopes

Workflow

Step 1: Verify Git Installation

git --version

Step 2: Configure Git User Identity

git config --global user.email "${GITHUB_EMAIL}"
git config --global user.name "${GITHUB_NAME}"

Step 3: Configure Credentials

Enable credential storage and preload GitHub credentials:

git config --global credential.helper store
cat <<EOF > ~/.git-credentials
https://${GITHUB_NAME}:${GITHUB_PAT}@github.com
EOF
chmod 600 ~/.git-credentials

Step 4: Verify Configuration

git config user.email
git config user.name
git ls-remote https://github.com/test/test.git

All commands should succeed without prompting for credentials.

Success Criteria

  • ✅ git --version succeeds
  • ✅ git config user.email and git config user.name return correct values
  • ✅ git ls-remote succeeds without prompting

Troubleshooting

Issue Solution
Git not found Install git using your system package manager
Authentication failed Verify GITHUB_PAT is valid, not expired, and has repo scope
Permission denied Check write permissions to home directory
Credentials not working Run rm ~/.git-credentials and reconfigure