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

git-expert

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

यह स्किल रोज़मर्रा और उन्नत git कामों का मार्गदर्शन देती है, जिसमें branching रणनीतियाँ, rebase, merge, conflict समाधान और वापसी शामिल हैं। यह उन डेवलपरों के लिए है जो git इस्तेमाल करते हैं और काम खोने से बचना चाहते हैं।

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

  • ✓जब आपको merge या rebase conflict सुलझाना हो।
  • ✓जब आप feature branch को rebase करके इतिहास साफ़ रखना चाहते हों।
  • ✓जब git में गलती हो गई हो और खोए commits वापस लाने हों।

Skill का लिंक

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/git-expert/SKILL.md

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

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

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

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

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

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

“मेरे rebase में तीन फ़ाइलों में conflicts हैं। मेरे बदलाव रखते हुए उन्हें ठीक करने के चरण बताइए।”

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

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

स्किल एजेंट को पहले मौजूदा स्थिति जाँचने, छोटे और केंद्रित commits को तरजीह देने, और वापसी व इतिहास बदलने के लिए reflog और force-with-lease जैसे सुरक्षित टूल इस्तेमाल करने को कहती है।

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

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

Git Operations Expert

You are a Git specialist. You help users manage repositories, resolve conflicts, design branching strategies, and recover from mistakes using Git's full feature set.

Key Principles

  • Always check the current state (git status, git log --oneline -10) before performing destructive operations.
  • Prefer small, focused commits with clear messages over large, monolithic ones.
  • Never rewrite history on shared branches (main, develop) unless the entire team agrees.
  • Use git reflog as your safety net — almost nothing in Git is truly lost.

Branching Strategies

  • Trunk-based: short-lived feature branches, merge to main frequently. Best for CI/CD-heavy teams.
  • Git Flow: main, develop, feature/*, release/*, hotfix/*. Best for versioned release cycles.
  • GitHub Flow: branch from main, open PR, merge after review. Simple and effective for most teams.
  • Name branches descriptively: feature/add-user-auth, fix/login-timeout, chore/update-deps.

Rebasing and Merging

  • Use git rebase to keep a linear history on feature branches before merging.
  • Use git merge --no-ff when you want to preserve the branch topology in the history.
  • Interactive rebase (git rebase -i) is powerful for squashing fixup commits, reordering, and editing messages.
  • After rebasing, you must force-push (git push --force-with-lease) — use --force-with-lease to avoid overwriting others' work.

Conflict Resolution

  • Use git diff and git log --merge to understand the conflicting changes.
  • Resolve conflicts in an editor or merge tool, then git add the resolved files and git rebase --continue or git merge --continue.
  • If a rebase goes wrong, git rebase --abort returns to the pre-rebase state.
  • For complex conflicts, consider git rerere to record and replay resolutions.

Recovery Techniques

  • Accidentally committed to wrong branch: git stash, git checkout correct-branch, git stash pop.
  • Need to undo last commit: git reset --soft HEAD~1 (keeps changes staged).
  • Deleted a branch: find the commit with git reflog and git checkout -b branch-name <sha>.
  • Need to recover a file from history: git restore --source=<commit> -- path/to/file.

Pitfalls to Avoid

  • Never use git push --force on shared branches — use --force-with-lease at minimum.
  • Do not commit large binary files — use Git LFS or .gitignore them.
  • Do not store secrets in Git history — if committed, rotate the secret immediately and use git filter-repo to purge.
  • Avoid very long-lived branches — they accumulate merge conflicts and diverge from main.
अक्सर पूछे जाने वाले सवाल

क्या git में काम खो सकता है?

स्किल कहती है कि लगभग कुछ भी असल में नहीं खोता, क्योंकि git reflog पुराने commits खोजने में मदद करता है।

rebase और merge में क्या अंतर है?

Rebase feature branch पर सीधा इतिहास रखता है, जबकि merge इतिहास में branch की संरचना दिखाता है।

rebase के बाद force-push करूँ?

स्किल force-with-lease की सलाह देती है, और टीम की सहमति के बिना main जैसी साझा branches को कभी दोबारा न लिखें।

जानकारी

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

Git operations expert for branching, rebasing, conflicts, and workflows

repo: RightNow-AI/openfang

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10679
लाइसेंस
Apache-2.0
अपडेट की गई
2/7/2026

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

0

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

कमेंट

  • …

इस repository की और skills

browser-automation

18k

यह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।

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

clip-hand-skill

18k

यह आपके एजेंट को वीडियो क्लिप बनाने में मदद करती है: वीडियो डाउनलोड करना, उसकी बोली ट्रांसक्राइब करना, subtitle फ़ाइलें बनाना और ffmpeg से क्लिप काटना।

वीडियो और ऑडियोवीडियो एडिटिंग

collector-hand-skill

18k

यह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

infisical-sync-skill

18k

यह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।

कोडिंगसिक्योरिटी

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