The infographic covers most essential Git commands used in GitHub-based production projects, but here's a checklist to clarify:
| Area | Command | Purpose |
|---|---|---|
| ✅ Init | git init |
Start local repo |
| ✅ Clone | git clone |
Copy remote repo |
| ✅ Status | git status |
Check file status |
| ✅ Add | git add |
Stage changes |
| ✅ Commit | git commit |
Save changes |
| ✅ Log | git log |
Show history |
| ✅ Push | git push |
Upload to GitHub |
| ✅ Pull | git pull |
Sync from GitHub |
| ✅ Branch | git branch / -b |
Feature branching |
| ✅ Checkout | git checkout |
Switch branches |
| ✅ Merge | git merge |
Combine branches |
| ✅ Conflict Resolution | Edit + add + commit |
Fix merge conflicts |
| ✅ Reset | git reset |
Undo commits |
| ✅ Tag | git tag |
Mark releases |
| ✅ Diff | git diff |
See code changes |
| ✅ Clean | git clean |
Remove untracked files |
| ✅ Remote | git remote |
Connect to GitHub |
| ✅ Ignore | .gitignore |
Prevent tracking unwanted files |
| ✅ Stash | git stash |
Temporarily save changes |
| Command | Purpose |
|---|---|
🔄 git fetch |
Download changes but don’t merge |
🧠 git rebase |
Rewrite commit history (used in clean-up) |
🧮 git cherry-pick |
Apply specific commit from one branch to another |
🚫 git revert |
Undo a commit with a new commit (safe undo) |
📎 git archive |
Package repo into tar/zip |
🧾 git blame |
Show who changed what line |
GitHub also includes:
gh CLI (for creating PRs, repos, issues)
GitHub Actions for CI/CD
Pull Requests (review & merge via web or gh)
Webhooks & integrations