# Git Github Master

> Professional strategies for publishing, collaborating, and managing repositories on GitHub.

- Skill: `jcorpac/git-github-master` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jcorpac/git-github-master`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jcorpac/git-github-master/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jcorpac (https://skillmd.com/u/jcorpac)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jcorpac/git-github-master

---


# GitHub Mastery

GitHub is more than just a host; it's a collaboration platform. This skill covers the mechanics of taking a local repository live and working with others.

## Remote Configuration
- **Connect**: `git remote add origin <url>`
- **Verify**: `git remote -v`
- **Push**: `git push -u origin main`

## Authentication (SSH)
Using SSH keys is more secure and convenient than HTTPS with Personal Access Tokens.
1. **Generate**: `ssh-keygen -t ed25519 -C "your_email@example.com"`
2. **Add**: Add the `.pub` key to your GitHub account settings.
3. **Test**: `ssh -T git@github.com`

## GitHub CLI (`gh`)
The official CLI tool for managing GitHub from your terminal.
- **Create Repo**: `gh repo create <name> --public --source=. --remote=origin`
- **Manage PRs**: `gh pr create`, `gh pr checkout <id>`, `gh pr merge`

## Pull Request Workflow
1. **Branch**: Create a feature branch.
2. **Push**: Push to GitHub.
3. **Draft**: Create a Draft PR if the work is in progress.
4. **Review**: Address feedback and push updates.
5. **Merge**: Squashing or rebasing is preferred for a clean `main` history.

## Best Practices
- **README**: Every repo needs a professional README.
- **LICENSE**: Choose an appropriate license (MIT, Apache 2.0).
- **Security**: Never commit secrets or API keys (use `.gitignore`).


