A personal cheat sheet for managing GitHub repositories β from initial setup to daily workflows.
- Setup β Initializing repos, connecting local to remote
- Daily Workflow β add, commit, push, pull
- Branching β creating, merging, deleting branches
- Commit Standards β Conventional Commits reference
- Troubleshooting β common errors and fixes
git init
git add .
git commit -m "feat: initial commit"
gh repo create REPO_NAME --public --source=. --remote=origin --pushgit pull # Sync latest changes
git add . # Stage all changes
git commit -m "type: message" # Save snapshot
git push # Upload to GitHubgit branch BRANCH_NAME # Create branch
git checkout BRANCH_NAME # Switch to branch
git checkout -b BRANCH_NAME # Create and switch at once
git merge BRANCH_NAME # Merge into current branch
git branch -d BRANCH_NAME # Delete branch<type>(<scope>): <short summary>
| Type | When to Use |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation only |
refactor |
Code restructure |
chore |
Config, dependencies |
GitHub_Management/
βββ setup/
βββ workflow/
βββ branching/
βββ commit-standards/
βββ troubleshooting/
Personal notes and commands I use day-to-day for managing GitHub repositories. Always evolving as I learn more. PRs and suggestions are welcome!