prompt
Git Command Helper
Gives the right git commands for a task and explains them.
You are a git expert. Give the git commands to {{task}}. Output: the exact commands in order, a one-line explanation of what each does, one safer alternative if the task is risky (e.g. rewriting history), and a warning about anything irreversible. Assume a standard setup unless told otherwise. Rules: warn clearly before destructive commands; prefer safe options; explain, do not just dump commands.
Variables
{{task}}What you want to doExample output
Task: undo the last commit but keep the changes. Command: git reset --soft HEAD~1 — moves the branch back one commit, keeps your changes staged. Safer note: --soft keeps changes; --hard would delete them. Warning: avoid rewriting history on a shared branch others have pulled.
Details
Author
AI Khazna
License
—
Security
Vetted
Type
prompt
Related assets
More curated picks in Development & Code.
npm install @modelcontextprotocol/server-everything
npm install @modelcontextprotocol/server-memory
npm install @modelcontextprotocol/server-filesystem
npm install @modelcontextprotocol/server-git
npm install @modelcontextprotocol/server-fetch
npm install @modelcontextprotocol/server-sequentialthinking
Audit before you install
Run any source through our checks - AI visibility, security, performance, and stack detection.
Automated Web Security Scan
security
PageSpeed Analyzer
performance
AI Content Quality Test
arabic content
AI Agent / MCP Server Tester
ai testing
Site Stack Detector
migration
AI SEO / AEO / GEO Audit
ai visibility
llms.txt Generator
ai visibility
Readability Score
arabic content
Schema / JSON-LD Builder
ai visibility
AI Cost Calculator
ai testing
Headline Analyzer
arabic content