ワンクリックで
configure-git-cli
Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Analyze a GitHub codebase to create comprehensive architecture documentation including ASCII diagrams, component relationships, data flow, hosting infrastructure, and file structure assessment.
Apply code changes to a GitHub repository and automatically create a pull request. Takes user feedback or fix requirements, clones the repo, makes localized changes, commits to a new branch, and opens a PR via GitHub MCP.
| name | configure-git-cli |
| description | Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT) |
| compatibility | Requires git installed and GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT environment variables set |
| license | MIT |
Use this skill before performing git operations (clone, push, commit, etc.). Required by the codebase-fix-and-pr skill.
Required environment variables:
GITHUB_EMAIL: Email address for git commitsGITHUB_NAME: Name for git commitsGITHUB_PAT: GitHub Personal Access Token with repo and workflow scopesgit --version
git config --global user.email "${GITHUB_EMAIL}"
git config --global user.name "${GITHUB_NAME}"
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
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.
git --version succeedsgit config user.email and git config user.name return correct valuesgit ls-remote succeeds without prompting| 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 |