Academy → Using HermesOfficial documentation · clear explanation

Github Auth — GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login

Github Auth — GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login

Beginner11 minutes3 questions2026-08-09
The idea in one minute

Start with meaning, then move to detail.

This lesson explains Github Auth — GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login as part of getting started with Hermes correctly. You will learn what it does, when it matters, and the smallest safe test that proves it works.

If you are new

If you are new, do not memorize names. Focus on three questions: what problem does this solve, what access does it need, and how can you verify the result?

For hands-on use

For practice, inspect the first example, identify its effects, run it on test data, and compare the result with the source claim.

For specialists

For advanced readers, inspect Skill metadata, Reference: full SKILL.md, Detection Flow, then verify failure modes and version compatibility.

What do you need first?

No prior experience is required; follow the steps on a safe test setup first.

What will you know?

A clear outcome before you read.

  • Understand Github Auth — GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login without assumed prior knowledge.
  • Separate the source description from what still needs testing in your environment.
  • Read the first command and identify its inputs and outputs before copying it.
Lesson terms

Short definitions before the details.

Skill
An instruction bundle that teaches Hermes a repeatable workflow without necessarily adding an external service.
Browser / CDP
A layer for programmatic browser control and page or event inspection.
Official page description

GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login

Topic map

What does the source say, and in what order?

  1. 01
    Skill metadata

    Start here to understand the core idea or structure.

  2. 02
    Reference: full SKILL.md

    Read this after the foundation, then connect it to the previous step.

  3. 03
    Detection Flow

    Read this after the foundation, then connect it to the previous step.

  4. 04
    Method 1: Git-Only Authentication (No gh, No sudo)

    Read this after the foundation, then connect it to the previous step.

  5. 05
    Option A: HTTPS with Personal Access Token (Recommended)

    Read this after the foundation, then connect it to the previous step.

  6. 06
    Option B: SSH Key Authentication

    Read this after the foundation, then connect it to the previous step.

  7. 07
    Method 2: gh CLI Authentication

    Read this after the foundation, then connect it to the previous step.

  8. 08
    Interactive Browser Login (Desktop)

    Read this after the foundation, then connect it to the previous step.

  9. 09
    Token-Based Login (Headless / SSH Servers)

    Read this after the foundation, then connect it to the previous step.

  10. 10
    Verify

    Finish here to verify the result and special cases.

Examples from the official page

Copy only after you understand the effect.

# Check what's available git --version gh --version 2>/dev/null || echo "gh not installed" # Check if already authenticated gh auth status 2>/dev/null || echo "gh not authenticated" git config --global credential.helper 2>/dev/null || echo "no git credential helper"
# Set up the credential helper to cache credentials # "store" saves to ~/.git-credentials in plaintext (simple, persistent) git config --global credential.helper store # Now do a test operation that triggers auth — git will prompt for credentials # Username: <their-github-username> # Password: <paste the personal access token, NOT their GitHub password> git ls-remote https://github.com/<their-username>/<any-repo>.git
# Cache in memory for 8 hours (28800 seconds) instead of saving to disk git config --global credential.helper 'cache --timeout=28800'
Try it now

Read the first command and identify its inputs and outputs before copying it.

Match every command to your installed Hermes version, review the files and accounts it can reach, and use non-sensitive data for the first test. If this explanation differs from the source, the official source wins.

Knowledge check

Three decisions before completion.

1. What is the source of truth when “Github Auth — GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login” changes?
2. What is the best way to apply this lesson?
3. What should happen before a step can modify files or an external account?