Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Git Cli

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

git-cli is a skill that helps run Git command-line operations safely, covering status, staging, commits, branches, syncing, and history.

About

git-cli is a reference skill for using the Git command line to inspect, stage, commit, branch, and synchronize changes. A developer uses it to get exact Git commands for a task and to follow safe workflows that avoid destructive operations unless explicitly requested. It bundles reference docs, helper scripts, and commit and gitignore templates.

  • Quick-reference table of Git commands for status, staging, branching, and syncing
  • Safety-first: prefers read-only commands and gates destructive ones
  • Bundled scripts to confirm repo context and summarize status

Git Cli by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #443 of 735 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

git-cli capabilities & compatibility

Free; only requires Git on PATH

Capabilities
git workflow · commit help
Works with
github
Use cases
documentation
Platforms
macOS · Linux · Windows · WSL
Pricing
Free
From the docs

What git-cli says it does

Helper for using the Git CLI to inspect, stage, commit, branch, and synchronize code changes.
SKILL.md
Prefer read-only commands (`git status`, `git diff`, `git log`). Do not suggest destructive commands
SKILL.md
On Windows: run in Git Bash or WSL (e.g. `bash scripts/status-summary.sh`).
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill git-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Get the exact safe Git CLI commands for status, staging, branching, syncing, and history tasks.

Who is it for?

Getting the right safe Git CLI command for a specific task.

Skip if: GitHub-API operations like creating repos or releases.

When should I use this skill?

A user asks how to do a Git operation from the command line.

What you get

The user gets the correct Git command and a safe workflow for their task.

  • Exact Git commands
  • Status summary via scripts

By the numbers

  • 3 bundled shell scripts (is-repo, status-summary, branch-list)

Files

SKILL.mdMarkdownGitHub ↗

Git CLI Skill — How to Work

Use this skill when the user asks about Git from the command line: what changed, staging/committing, branching, push/pull, stashing, history, tags, merge/rebase, or cloning.

Your Workflow

1. Confirm context: Ensure Git is on PATH and the user is in (or will run commands in) a repo. If unsure, suggest git status or run scripts/is-repo.sh from the skill directory. 2. Safety first: Prefer read-only commands (git status, git diff, git log). Do not suggest destructive commands (git reset --hard, git clean -fdx, git push --force) unless the user explicitly asks and understands the risk. For recovery, use git reflog to find a commit before suggesting reset/checkout. 3. Give the right level of detail:

  • Quick answer: Use the Quick Reference table below and reply with the exact command(s).
  • Step-by-step or edge cases: Point to or quote from reference/ (e.g. reference/workflows.md, reference/troubleshooting.md).
  • Automation / repeatable checks: Use or adapt scripts in scripts/ and tell the user how to run them.
  • Templates (commit message, .gitignore): Use or copy from assets/.

Quick Reference (use this first)

TaskCommand
State & diffgit status · git diff · git diff --staged · git diff --stat
Stage / unstagegit add <path> or git add . · git restore --staged <path>
Commitgit commit -m "message"
Branchgit branch · git branch -a · git switch -c new · git switch existing
Sync remotegit fetch · git pull · git push -u origin <branch> then git push
Stashgit stash · git stash list · git stash apply / git stash pop
Historygit log --oneline --decorate --graph -n 20 · git blame <file>
Clone / initgit clone <url> · git init · git remote add origin <url>
Remotesgit remote -v · git remote show origin · git branch -vv
Discard (destructive)git restore <file> (working tree) · git restore --staged <file> (unstage)
Amendgit commit --amend --no-edit or -m "message"
Tagsgit tag · git tag v1.0 · git push origin v1.0 or --tags
Merge / rebasegit merge <branch> · git rebase <branch> · conflict → fix → git addgit commit or git rebase --continue

Where to Look

NeedLocation
Full command list, options, examplesreference/commands.md
Step-by-step workflows (branch, release, conflict)reference/workflows.md
Errors, recovery, detached HEAD, .gitignorereference/troubleshooting.md
Run checks (is repo, status summary, branch info)scripts/ — run from repo root
Commit message or .gitignore templateassets/

Scripts (run from repository root)

  • scripts/is-repo.sh — Exit 0 if current dir is a Git repo, else 1. Use to confirm context before suggesting commands.
  • scripts/status-summary.sh — Short status + branch + last commit. Use when user asks "what’s my current state?"
  • scripts/branch-list.sh — Local and remote branches with upstream. Use when user asks about branches or push target.

On Windows: run in Git Bash or WSL (e.g. bash scripts/status-summary.sh).

Assets

  • assets/commit-msg-template.txt — Template for conventional or structured commit messages; suggest when user asks for commit message format.
  • assets/gitignore-common.txt — Common .gitignore patterns; suggest when user has many untracked files or asks for .gitignore examples.

When the user needs a diagram (e.g. branch/merge flow), describe it in text or point to reference; only create or reference images in assets/ if the user explicitly asks for a visual.

Related skills

FAQ

Does git-cli suggest destructive commands?

No, not unless the user explicitly asks and understands the risk; it prefers read-only commands.

What helper scripts are bundled?

is-repo.sh, status-summary.sh, and branch-list.sh, run from the repository root.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.