w-git-repair
Repair Git Problems With Safe Commands
Git conflicts, detached HEAD states, and upstream divergence can cause accidental data loss. This skill inspects repository state and proposes the smallest repair commands with confirmation for destructive actions.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "w-git-repair" from https://skillstore.io/skills/blockmatic-w-git-repair.md and its manifest at https://skillstore.io/api/skills/blockmatic-w-git-repair/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“w-git-repair”。 My branch is behind the remote and Git reports conflicts. What should I do?
预期结果:
The branch has diverged. I will first inspect status, tracking information, and recent history, then propose the smallest integration steps. I will wait for confirmation before changing files.
正在使用“w-git-repair”。 I checked out a commit and now I am in detached HEAD. Help me recover.
预期结果:
- Confirm whether the detached commit contains work that must be preserved.
- Identify an existing branch or create a new branch only after reviewing the current state.
- Recheck status after the authorized action and verify that the work is reachable.
安全审计
安全All three static signals are false positives. The environment-file signal describes rules that prevent committing secrets, while the two command signals identify inline Git examples in Markdown rather than executable shell code. No additional semantic security findings were identified.
风险因素
⚙️ 外部命令 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/blockmatic-w-git-repair/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/blockmatic-w-git-repair?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/blockmatic-w-git-repair?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/blockmatic-w-git-repair/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/blockmatic-w-git-repair.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
blockmatic. (2026). w-git-repair security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/blockmatic-w-git-repair/audits/1BibTeX 引用
@techreport{blockmatic-blockmatic-w-git-repair-2026,
author = {blockmatic},
title = {w-git-repair security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/blockmatic-w-git-repair/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "w-git-repair security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "blockmatic"
date-released: "2026-09-20"
url: "https://skillstore.io/skills/blockmatic-w-git-repair/audits/1"
identifiers:
- type: other
value: "skillstore:blockmatic-w-git-repair:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Recover a Detached HEAD
Inspect the current commit and branches, then receive a cautious path back to a working branch.
Resolve Upstream Divergence
Compare local and remote tracking information and choose a minimal integration approach.
Handle Local Conflicts
Review conflict status and receive explained next steps that preserve unrelated work.
试试这些提示
Inspect my current Git status, branch tracking, and recent relevant history. Summarize the problem and do not change files.
Review the repository state and propose the smallest safe steps to resolve the current conflict. Explain what each step changes.
Determine whether an interrupted merge or rebase is in progress. List the safe recovery choices, and ask for confirmation before any destructive command.
Analyze local and upstream divergence, preserve unrelated work, and recommend an integration strategy. Treat history rewriting as unavailable unless I explicitly request it.
最佳实践
- Provide the exact repository state and the goal before requesting a repair.
- Review each proposed command and confirm actions that can discard work.
- Preserve unrelated staged, unstaged, and untracked changes.
避免
- Do not approve destructive commands without reviewing their effect.
- Do not rewrite published history to solve an unexamined conflict.
- Do not force-push or bypass hooks as a shortcut.
常见问题
Does this skill run Git commands automatically?
Can it repair merge conflicts?
Can it recover a detached HEAD?
Does it support upstream divergence?
Will it use hard reset or clean automatically?
Can it rewrite published history?
开发者详情
作者
blockmatic许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
71c22685fcd4644d03ae28812e97ea1562ebe3fe
维护新鲜度
2026/9/20
使用量
0 次下载 · 0 次浏览
文件结构