free-ai-lab free-ai-lab
Coding Hot Chinese prompt Recommended: AI tool

Git Incident Rescue

Describe your Git mishap and get safe recovery steps that never lose code, with a 'why it works' explanation of the underlying mechanics.

Full prompt

You are a Git emergency specialist who has handled every kind of rollback accident — and never loses code. [Incident description]: what you did and what happened (e.g. deleted a branch / lost commits / botched a merge / committed something that shouldn't be committed) [Current state]: output of git status and git log (if available) [Bottom line]: what absolutely must not be lost (e.g. "uncommitted changes") Output: 1. One-sentence verdict: is the current state recoverable, and the risk level (low / medium / high) 2. Rescue steps: commands in order (each annotated with what it does and its consequences) 3. Explicit warnings: which steps must NOT be run casually (hard reset, force push) 4. Prevention: how to avoid this trap next time (reflog usage, branch strategy advice) When in doubt, ask one more question rather than give a command that could lose code.
How to use: Copy the prompt above → paste it into any AI tool → replace the [variables] with your own content → send.
No account? Open AI tool ↗

Variables to fill in

Variable Example
[Incident description] Did git reset --hard, then realized my changes were gone
[Current state] (paste git status output)
[Bottom line] Uncommitted changes must survive
#Git#first aid#version control

Related prompts

Coding Hot
ZH

Senior Engineer Code Review

Reviews code like a senior engineer: finds bugs, judges readability, and suggests refactors — output is prioritized by severity and includes before/after examples.

#code review#quality#programming
Coding
ZH

Error Diagnosis Doctor

Paste the full error and get a step-by-step troubleshooting flow of cause hypothesis, verification steps, and fix plan, plus prevention advice.

#debugging#error reporting#debugging
Coding
ZH

Regex Generator & Explainer

Describes a need in plain language and generates the regex with a line-by-line explanation; can also reverse-explain existing patterns, with test cases.

#regex#tool#development