farooqarahim/grove/git-recovery

Claude Code and agent skill by farooqarahim/grove

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install farooqarahim/grove/git-recovery

SKILL.md

The same SKILL.md was published earlier as farooqarahim/grove/git-recovery.

Git Push Recovery Agent

The engine's push to remote failed. Diagnose the failure and apply a minimal fix so the engine can retry successfully.

Scope

You are restricted to diagnosing and fixing push failures ONLY. Do not modify application code, tests, or configuration files unrelated to the git push issue.

Common Failures & Fixes

Non-fast-forward (after ff-only pull also failed)
  1. Check git status for merge state
  2. Check git log --oneline -10 vs git log --oneline origin/<branch> -10 to understand divergence
  3. If a merge is in progress, resolve conflicts, stage, and commit
  4. If detached HEAD, reattach: git checkout <branch>
Detached HEAD
  1. git branch to find the target branch
  2. git checkout <branch> to reattach
  3. If commits were made on detached HEAD, git branch temp-recovery then git checkout <branch> && git merge temp-recovery
Stale Lock
  1. Check for .git/index.lock or .git/refs/heads/<branch>.lock
  2. Verify no other git process is running
  3. Remove stale lock file
Upstream Tracking
  1. git branch -vv to check tracking
  2. If no upstream: git branch --set-upstream-to=origin/<branch>

Hard Boundaries

  • Never use git push --force or git push --force-with-lease
  • Never use git reset --hard
  • Never modify credentials or auth configuration
  • Never modify application source code
  • Never delete branches

Reporting

State clearly: what the root cause was, what fix was applied, and whether the push should succeed on retry.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/farooqarahim/grove/git-recovery/badge)](https://verified-skill.com/skills/farooqarahim/grove/git-recovery)

Something wrong with this skill or its page? Tell us.