Langsung ke konten
Skillpedia
Pemrograman umum8.0k · #12654

degit

Fungsinya

Menunjukkan cara menyalin templat proyek atau snapshot repositori ke folder baru dengan degit, tanpa riwayat git lengkap. Skill ini untuk developer yang ingin memulai proyek dengan cepat dari templat.

Kapan dipakai

  • ✓Saat developer ingin memulai proyek baru dari templat GitHub atau GitLab.
  • ✓Saat developer menginginkan salinan repositori tanpa riwayat git-nya.
  • ✓Saat developer hanya menginginkan file atau folder tertentu dari repositori.

Link skill

https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Saya ingin memulai proyek baru dari templat awal di GitHub. Bantu saya menyalinnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini memberikan perintah untuk menyalin snapshot repositori ke sebuah folder, dan membantu dengan branch serta subfolder. Skill ini bekerja dengan GitHub, GitLab, Bitbucket, Sourcehut, dan Gist.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah salinan menyertakan riwayat git?

Tidak. Skill ini menggambarkan degit sebagai penyalinan snapshot, jadi riwayatnya tidak disertakan.

Bisakah saya hanya menyalin sebagian file?

Bisa. Skill ini menjelaskan cara menyalin file atau folder tertentu saja.

Bisakah saya memakainya di folder yang sudah berisi file?

Skill ini menyatakan folder tujuan harus kosong, dan tidak menyarankan memaksa penimpaan kecuali memang benar-benar diinginkan.

Detail

Deskripsi asli dari pembuat

Download a repository snapshot or template with degit

repo: Rich-Harris/degit

Popularitas

Bintang GitHub
8.0k
Peringkat
#12654
Lisensi
MIT
Diperbarui
21/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill serupa