> For the complete documentation index, see [llms.txt](https://yamoo9.gitbook.io/learning-react-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yamoo9.gitbook.io/learning-react-app/tip-and-references/github-repository-clone-tip.md).

# Github repository Clone Tip!

GitHub 저장소 특정 디렉토리만 복사하는 방법

때론 GitHub 저장소의 특정 디렉토리를 복사하고 싶을 수 있습니다. 이런 경우 [tiged](https://github.com/tiged/tiged) 패키지를 사용하면 특정 디렉토리만 손쉽게 복사할 수 있습니다. tiged를 활용하기 위해 패키지를 글로벌 설치합니다.

{% tabs %}
{% tab title="패키지 설치" %}

```bash
npm i -g tiged
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**NOTE**

이전에 [degit](https://github.com/Rich-Harris/degit)을 사용했다면? 현재 degit은 업데이트 되지 않고 있으므로 tiged로 대체하길 권장합니다.

```bash
npm un -g degit
npm i -g tiged
```

{% endhint %}

## 사용법 <a href="#usage" id="usage"></a>

[ejinaaa/FDS18\_react](https://github.com/ejinaaa/FDS18_react) GitHub 저장소에서 **react-movie-list** 디렉토리만 복사하려면 다음 명령을 실행합니다. 복사된 결과는 **ejinaaa-movie** 디렉토리에서 확인할 수 있습니다.

```bash
degit https://github.com/ejinaaa/FDS18_react.git/react-movie-list ejinaaa-movie
```

## 참고 <a href="#documentation" id="documentation"></a>

{% embed url="<https://github.com/tiged/tiged>" %}
