github-auth

Authenticate to GitHub across git and gh CLI.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill github-auth-john-data-chen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/john-data-chen/hermes-agent-backup/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill github-auth-john-data-chen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

GitHub authentication is required for reliable access to Git operations and the GitHub API via git, SSH, or gh CLI; this skill sets up and maintains credentials so workflows run without repeated prompts.

Core Features & Use Cases

  • Git authentication via HTTPS tokens or SSH keys for all git operations.
  • gh CLI authentication for unified API access and credential management.
  • Works across machines with or without gh installed, providing fallback to git-based methods when gh is unavailable.

Quick Start

Follow the steps to configure Git and/or gh authentication so future pushes to GitHub succeed without prompts.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I set up GitHub authentication for git and gh CLI?

GitHub authentication is configured by applying HTTPS tokens or SSH keys for git operations and logging into gh CLI for unified API access. This dual-path setup ensures repository operations run without repeated credential prompts.

What is the best way to authenticate to GitHub in a CI environment?

Authenticating to GitHub in CI environments uses the same git HTTPS or SSH credential setup and gh CLI login. The detection flow selects the best method available, providing fallback to git-based methods when gh is not installed.

Does this GitHub authentication method work without gh CLI installed?

Yes, GitHub authentication works without gh CLI installed by falling back to git-based HTTPS token or SSH key methods. This ensures reliable access to repository operations even when the gh CLI is unavailable.

Why does git keep prompting for credentials when I push to GitHub?

Git prompts for credentials repeatedly when GitHub authentication is not properly saved. Configuring HTTPS tokens or SSH keys for git and authenticating gh CLI sets up and maintains credentials to prevent these prompts.

Can I use SSH keys and HTTPS tokens for GitHub authentication at the same time?

Yes, GitHub authentication supports both SSH keys and HTTPS tokens simultaneously through its dual-path design. A detection flow automatically selects the best method for your git and gh CLI repository operations.