मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग5.1k · #15112

omh-git-workflow

यह क्या करती है

यह मर्ज या रीबेस कॉन्फ़्लिक्ट सुलझाने की योजना बनाती है, git bisect से गलत कमिट खोजती है, और हिस्ट्री ठीक करती है। कुछ भी दोबारा लिखने से पहले यह बताती है कि कौन सी चीज़ पहले से पुश हो चुकी है। यह उन डेवलपर के लिए है जो git की समस्या में अटके हैं।

कब इस्तेमाल करें

  • ✓जब मर्ज या रीबेस में कॉन्फ़्लिक्ट आए और उसे सुरक्षित तरीके से सुलझाना हो।
  • ✓जब कोई कमिट कुछ तोड़ दे और आप पता लगाना चाहते हैं कि वह कौन सा कमिट है।
  • ✓जब समीक्षा से पहले ब्रांच की हिस्ट्री साफ़ करनी हो।

Skill का लिंक

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-git-workflow/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-git-workflow/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“समीक्षा से पहले इस ब्रांच की हिस्ट्री साफ़ कीजिए, और ध्यान रखिए कि मेरा कोई काम न खोए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले देखता है कि क्या पहले से पुश हो चुका है, एक बैकअप पॉइंट तय करता है, और फिर दोबारा लिखने या सुलझाने का कदम-दर-कदम प्लान बनाता है। फ़ोर्स पुश सिर्फ़ सुरक्षित लीज़ वाले रूप में होता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Git Workflow

This is an OMH git-workflow workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

git-workflow exists because conflict resolution, bisect, and history repair had no owner: "resolve this merge conflict" reached a file operator and "clean up this branch's history" a live-information lane, while this repository's own incidents -- a stack that replayed its base commits, a commit landing on another session's branch -- each had a known correct procedure.

First Steps

  • Name what is already pushed: each branch involved with its local head, its remote head, and whether others may have fetched it.
  • Before any step that rewrites history, name its recovery point.

Do Not Use When

  • The request is to write the commit message or the PR body for a finished change; use omh-commit-pr-authoring.
  • The request is to find defects in a diff before merging it; use omh-code-review.
  • The build or CI job fails and the question is why; use omh-build-failure-triage.
  • The request is a code change to deliver rather than branch or history repair; use ulw-work.

Examples

Good example:

  • Prompt: clean up this branch's history before review
  • Expected behavior: Prepare pushed_state_inventory/v1 first, then history_rewrite_plan/v1 with a backup branch before the interactive rebase and --force-with-lease for the push, naming who must re-fetch.
  • Why: Whether the branch is pushed decides whether the cleanup is local or shared.

Bad example:

  • Prompt: just force push my rebased branch over main
  • Expected behavior: Refuse the bare force-push: inventory what is pushed on main, and plan --force-with-lease onto the feature branch only.
  • Why: A bare force-push over a shared branch discards other people's commits without a check.

Completion Checklist

  • The pushed-state inventory names every branch the plan touches.
  • Every rewriting step has a recovery point in front of it.
  • Every force-push in the plan uses --force-with-lease.
  • Generated and counted files in a conflict are re-derived, not picked.
  • Resolution, bisect verdict, and push are reported only from observed output.

Recovery Notes

  • If the remote state is unknown, plan git fetch and the inventory first and rewrite nothing until it is observed.
  • If a rewrite went wrong, recover from the recovery point or the reflog entry before trying anything else.

When to Use

Use when a git branch needs repair rather than new code: a merge or rebase conflict to resolve, a regression to bisect to the commit that introduced it, or history to rewrite, squash, recover, or rebase -- including a stack of branches. The work is a plan that names what is already pushed, what each step rewrites, and how to get back.

Strong routing signals: `git-workflow`, `git workflow`, `merge conflict`, `merge conflicts`, `rebase conflict`, `resolve the conflict`, `resolve this conflict`, `conflict markers`, `git bisect`, `bisect`, `which commit broke`, `find the commit that broke`, `rewrite history`, `rewrite the history`, `branch history`, `branch's history`, `clean up the history`, `interactive rebase`, `squash commits`, `squash the commits`, `force push`, `force-push`, `force-with-lease`, `reflog`, `git reset`, `lost commit`, `recover the commit`, `undo the last commit`, `cherry-pick`, `stacked prs`, `stacked branches`, `rebase the stack`, `detached head`

Catalog Metadata

Category: verification Phase: git-repair Quality tier: history-safety-gated Reasoning demand: standard

Quality bar:

  • Start with the pushed-state inventory; a plan without it cannot say which steps are safe.
  • Mark every step that rewrites history and put its recovery point in front of it.
  • Load references/git-repair-method.md for the conflict, bisect, rewrite, and stacked-branch procedures instead of improvising them.
  • For a stack of branches, rebase each onto the new head of the one below with --onto and the old base, never with a merge-base computed after the base moved.
  • Report each step's observed output, and keep resolved, verified, and pushed as separate states.

Required inputs:

  • the branch or branches involved and their upstreams
  • what is already pushed, and who else may have fetched it
  • the conflict, the regression, or the history problem as observed
  • for a bisect: a known good commit, a known bad commit, and the command that tells them apart
  • the repository's merge policy: merge com
अक्सर पूछे जाने वाले सवाल

क्या हिस्ट्री दोबारा लिखने से मेरा काम खो सकता है?

स्किल किसी भी दोबारा लिखने से पहले बैकअप ब्रांच रखती है और बताती है कि क्या पहले से पुश है।

क्या यह फ़ोर्स पुश करती है?

सिर्फ़ सुरक्षित लीज़ वाले फ़ॉर्म में, और तभी जब पुश की स्थिति जाँच ली गई हो।

क्या यह मेरे कोड में बग की समीक्षा करती है?

नहीं। बग की समीक्षा एक अलग कोड रिव्यू स्किल करती है।

जानकारी

लेखक का मूल विवरण

[omh] Git branch in trouble -- a merge conflict, a commit that broke something, history to repair: plan the resolution, the bisect, or the rewrite, name what is already pushed first, and force-push only with `--force-with-lease`. Use when the user says: git-workflow, git workflow, merge conflict, merge conflicts, rebase conflict, resolve the conflict, resolve this conflict, conflict markers.

repo: rlaope/oh-my-hermes

लोकप्रियता

GitHub स्टार
5.1k
रैंकिंग में स्थान
#15112
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

omh-accessibility-audit

5.1k

यह आपके एजेंट को किसी स्क्रीन या फ़्लो में एक्सेसिबिलिटी की कमियाँ जाँचने में मदद करती है, जैसे कीबोर्ड उपयोग, स्क्रीन रीडर लेबल, कंट्रास्ट और टच टारगेट का आकार।

कोडिंगटेस्टिंग

omh-adversarial-consensus

5.1k

यह आपके एजेंट को किसी तकनीकी प्रस्ताव पर प्रतिबद्ध होने से पहले उस पर कई स्वतंत्र नज़रियों से हमला करवाने देती है, फिर देखती है कि क्या बचता है।

AI और एजेंटएजेंट

omh-agent-debug

5.1k

यह आपके एजेंट को पता लगाने में मदद करती है कि कोई दूसरा AI एजेंट क्यों अटका है, लूप में है या भटक रहा है, और सबसे छोटा सुरक्षित सुधार सुझाती है।

AI और एजेंटएजेंट

omh-agent-instructions

5.1k

यह आपके एजेंट को वह निर्देश फ़ाइल लिखने या अपडेट करने में मदद करती है, जैसे AGENTS.md या CLAUDE.md, जो बताती है कि AI टूल किसी प्रोजेक्ट में कैसे काम करें।

AI और एजेंटप्रॉम्प्ट और LLM

मिलती-जुलती skills