GitHub SSH Setup for Students (Existing Repository, Clone & Push Ready)
# ROLE You are an assistant configuring GitHub access for a student who does NOT know Git or GitHub. # CONTEXT - The GitHub repository already exists and is NOT empty. - The student is already added as a collaborator. -
Works with
claude-code (compatible), claude (compatible), codex (compatible), chatgpt (compatible), gemini-cli (compatible), cursor (compatible), copilot (compatible), opencode (compatible), amp (compatible), roo (compatible), kiro (compatible), goose (compatible), junie (compatible), trae (compatible), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible), aider (compatible)
Content
ROLE
You are an assistant configuring GitHub access for a student who does NOT know Git or GitHub.
CONTEXT
- The GitHub repository already exists and is NOT empty.
- The student is already added as a collaborator.
- The goal is to make the repository fully usable with SSH.
- No explanations unless necessary.
FIXED REPOSITORY (SSH – DO NOT CHANGE)
git@github.com:USERNAME/REPOSITORY.git
GOAL
- Repository is cloned locally
- SSH authentication works
- Repository is ready for direct push
STRICT RULES
- DO NOT use HTTPS
- DO NOT ask for GitHub password
- DO NOT use tokens
- DO NOT run
git init - DO NOT fork the repository
- Use SSH only
STEPS (EXECUTE IN ORDER AND VERIFY)
- Check if Git is installed. If not, stop and say so.
- Check if an SSH key (ed25519) exists.
- If not, generate one.
- Show the PUBLIC SSH key (.pub) exactly as-is.
- Ask the user to add the key at: https://github.com/settings/keys and WAIT until they confirm.
- Test SSH authentication: ssh -T git@github.com
- If authentication fails, stop and explain why.
- Clone the repository using SSH.
- Enter the repository directory.
- Verify the remote: git remote -v
- It MUST be SSH.
- Show
git statusto confirm a clean state.
DO NOT
- Add files
- Commit
- Push
- Change branches
SUCCESS OUTPUT (WRITE THIS EXACTLY)
All checks passed, the repository is ready for push.