degit
यह क्या करती है
दिखाती है कि degit से प्रोजेक्ट टेम्पलेट या रिपॉज़िटरी का स्नैपशॉट नई फ़ोल्डर में कैसे कॉपी किया जाता है, बिना पूरी git हिस्ट्री के। यह उन डेवलपर्स के लिए है जो टेम्पलेट से जल्दी प्रोजेक्ट शुरू करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई डेवलपर GitHub या GitLab टेम्पलेट से नया प्रोजेक्ट शुरू करना चाहता है।
- ✓जब कोई डेवलपर रिपॉज़िटरी की कॉपी चाहता है, बिना उसकी git हिस्ट्री के।
- ✓जब कोई डेवलपर रिपॉज़िटरी से सिर्फ़ कुछ फ़ाइलें या फ़ोल्डर लेना चाहता है।
Skill का लिंक
https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे GitHub पर एक स्टार्टर टेम्पलेट से नया प्रोजेक्ट शुरू करना है। उसे कॉपी करने में मदद कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल बताती है कि रिपॉज़िटरी का स्नैपशॉट फ़ोल्डर में कैसे कॉपी करें, और ब्रांच व सब-फ़ोल्डर में भी मदद करती है। यह GitHub, GitLab, Bitbucket, Sourcehut और Gists के साथ काम करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Help the user scaffold a project with degit. Use npx degit@latest unless they have installed degit globally.
Start with the smallest command that matches their request:
npx degit@latest user/repo
npx degit@latest user/repo my-project
npx degit@latest user/repo#branch my-project
Sources can be GitHub (user/repo, github:user/repo, or a GitHub URL), GitLab (gitlab:user/repo, a GitLab URL, or gitlab://host/user/repo), Bitbucket (bitbucket:user/repo or URL), Sourcehut (git.sr.ht/user/repo, SSH form, or URL), or Gist (https://gist.github.com/<id>, https://gist.github.com/<user>/<id>, git@gist.github.com:<id>.git, or ssh://git@gist.github.com/<id>). A #ref can name a branch, tag, or commit. A source may include a subdirectory path.
- The destination defaults to the current directory and must be empty. Do not suggest
--forceunless the user explicitly wants to overwrite its contents. - Use
--cacheto require a cached copy (no network). Without--cache, degit tries the network first and falls back to the cached copy if the network is unreachable. Use--verboseto diagnose failures.--mode=gitstill works but is unnecessary; tar snapshots are the default. - Use
--files <paths>or-F <paths>to clone only specific files or directories; separate multiple paths with commas or repeat the flag. - Private repositories are handled automatically, with SSH fallback when needed. SSH/private use requires
gitonPATHand working repository credentials. - For reusable shortcuts, use
degit alias <repo> <name>, thendegit <name>; usedegit lsanddegit unalias <name>to manage aliases. - If a template needs post-download changes, explain that its top-level
degit.jsoncan useclone,search_replace, andremoveactions.search_replaceuses a named environment variable for its replacement value. - A downloaded
degit.jsonruns automatically and is template-controlled. For untrusted templates, prefer--no-actionsto skip actions, or--allow-env <names>to limit which environment variablessearch_replacemay read.
If source, ref, destination, or whether the destination is empty is unknown, ask before giving a potentially destructive command.
अक्सर पूछे जाने वाले सवाल
क्या कॉपी में git हिस्ट्री शामिल होती है?
नहीं। स्किल degit को स्नैपशॉट कॉपी करने वाला बताती है, इसलिए हिस्ट्री शामिल नहीं होती।
क्या सिर्फ़ कुछ फ़ाइलें कॉपी की जा सकती हैं?
हाँ। स्किल बताती है कि सिर्फ़ खास फ़ाइलें या फ़ोल्डर कैसे कॉपी करें।
क्या ऐसे फ़ोल्डर में इसका इस्तेमाल हो सकता है जिसमें पहले से फ़ाइलें हों?
स्किल कहती है कि गंतव्य फ़ोल्डर खाली होना चाहिए, और जब तक आप सच में न चाहें, वह ज़बरदस्ती ओवरराइट करने का सुझाव नहीं देती।
जानकारी
लोकप्रियता
- GitHub स्टार
- 8.0k
- रैंकिंग में स्थान
- #12654
- लाइसेंस
- MIT
- अपडेट की गई
- 21/10/2026
कमेंट
- …
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।