github-commit-recovery

Retrieve deleted GitHub commits by SHA via web, REST API, or git fetch.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/dawsonblock/OracleOS --skill github-commit-recovery-dawsonblock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-commit-recovery
Source: https://github.com/dawsonblock/OracleOS/tree/main/Interface/Web/raptor-main/.claude/skills/oss-forensics/github-commit-recovery
Command: npx skills add https://github.com/dawsonblock/OracleOS --skill github-commit-recovery-dawsonblock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Access deleted GitHub commit content, diffs, and metadata by SHA using web, REST, or git fetch. The content explains how to locate, verify, and recover information from commits that are not visible on branches, enabling forensic analysis and review.

Core Features & Use Cases

  • Retrieve commit content, diffs, and metadata from GitHub by SHA, including patches and file changes.
  • Compare author vs committer data, verify provenance, and audit history for security investigations.
  • Use cases include incident response, code review after force-pushes, and archival recovery for investigations.

Quick Start

Provide a repository and commit SHA to retrieve the commit content and metadata from GitHub.

Frequently Asked Questions about github-commit-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover deleted GitHub commit content after a force push?

Recover deleted GitHub commit content after a force push by locating the specific commit SHA. You can retrieve diffs, patches, and metadata through web URLs, the REST API, or git fetch to access the dangling commit information.

Can I get a diff from a deleted commit using its SHA?

Yes, you can get a diff from a deleted commit using its SHA. Provide the repository details and the commit SHA to retrieve file changes, patches, and authorship data for forensic analysis or code review.

Does GitHub still expose dangling commits through the REST API?

GitHub exposes dangling commits through the REST API when you query them directly by SHA. Authentication and rate limit considerations apply, but the commit content and metadata remain accessible for recovery workflows.

What is the best way to audit author vs committer data for a deleted commit?

The best way to audit author vs committer data for a deleted commit is to retrieve the commit by SHA using git fetch or the REST API. This allows you to verify provenance and compare authorship metadata for security investigations.

Why does git fetch fail to retrieve a force-pushed commit?

Git fetch may fail to retrieve a force-pushed commit if the reflog has expired or the SHA is inaccessible. Using the GitHub REST API or direct web URLs provides an alternative recovery path for accessing the deleted commit content.

Do I need authentication to recover deleted commit patches from GitHub?

Authentication is required to recover deleted commit patches from private repositories and helps manage rate limits for public ones. Using the REST API or git fetch with proper credentials ensures reliable access to commit metadata.