본문으로 건너뛰기
Skillpedia
일반 코딩8.0k · #12654

degit

하는 일

프로젝트 템플릿이나 저장소의 스냅숏을 전체 git 기록 없이 degit으로 새 폴더에 복사하는 방법을 보여 줍니다. 템플릿으로 프로젝트를 빨리 시작하고 싶은 개발자를 위한 것입니다.

사용하는 경우

  • ✓개발자가 GitHub나 GitLab 템플릿으로 새 프로젝트를 시작하고 싶을 때.
  • ✓개발자가 git 기록 없이 저장소 복사본을 원할 때.
  • ✓개발자가 저장소의 특정 파일이나 폴더만 필요한 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“GitHub에 있는 스타터 템플릿으로 새 프로젝트를 시작하고 싶어요. 복사하는 방법을 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 저장소 스냅숏을 폴더에 복사하는 명령을 알려 주고, 브랜치와 하위 폴더 사용도 돕습니다. GitHub, GitLab, Bitbucket, Sourcehut, Gist에서 작동합니다.

기술 내용 (원본 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
업데이트
2026. 10. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬