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

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 पढ़कर निर्देशों का पालन करेगा।

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

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

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 --force unless the user explicitly wants to overwrite its contents.
  • Use --cache to 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 --verbose to diagnose failures. --mode=git still 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 git on PATH and working repository credentials.
  • For reusable shortcuts, use degit alias <repo> <name>, then degit <name>; use degit ls and degit unalias <name> to manage aliases.
  • If a template needs post-download changes, explain that its top-level degit.json can use clone, search_replace, and remove actions. search_replace uses a named environment variable for its replacement value.
  • A downloaded degit.json runs automatically and is template-controlled. For untrusted templates, prefer --no-actions to skip actions, or --allow-env <names> to limit which environment variables search_replace may read.

If source, ref, destination, or whether the destination is empty is unknown, ask before giving a potentially destructive command.

अक्सर पूछे जाने वाले सवाल

क्या कॉपी में git हिस्ट्री शामिल होती है?

नहीं। स्किल degit को स्नैपशॉट कॉपी करने वाला बताती है, इसलिए हिस्ट्री शामिल नहीं होती।

क्या सिर्फ़ कुछ फ़ाइलें कॉपी की जा सकती हैं?

हाँ। स्किल बताती है कि सिर्फ़ खास फ़ाइलें या फ़ोल्डर कैसे कॉपी करें।

क्या ऐसे फ़ोल्डर में इसका इस्तेमाल हो सकता है जिसमें पहले से फ़ाइलें हों?

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

जानकारी

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

Download a repository snapshot or template with degit

repo: Rich-Harris/degit

लोकप्रियता

GitHub स्टार
8.0k
रैंकिंग में स्थान
#12654
लाइसेंस
MIT
अपडेट की गई
21/10/2026

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

0

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

कमेंट

  • …

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